Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.calypso_cache corruption in certain use cases #79

Open
timotheecour opened this issue Jan 16, 2018 · 0 comments
Open

.calypso_cache corruption in certain use cases #79

timotheecour opened this issue Jan 16, 2018 · 0 comments

Comments

@timotheecour
Copy link
Collaborator

to reproduce:

mkdir temp && cd temp
$ldc2 -cpp-verbosediags -cpp-args -std=c++11 -run $git_clone_D/D/Calypso/tests/calypso/basics.d

# ok

cp $git_clone_D/D/Calypso/tests/calypso/basics.d .
ldc2 -cpp-verbosediags -cpp-args -std=c++11 -cpp-args -I$git_clone_D/D/Calypso/tests/calypso -run basics.d

Calypso/tests/calypso/basics.cpp:6:8: error: redefinition of 'testDoubleVar'
double testDoubleVar = 99.99;
       ^
Calypso/tests/calypso/basics.cpp:6:8: note: previous definition is here
double testDoubleVar = 99.99;

also, error message is non-sensical since previous definition location==redefinition location

WORKAROUND: rm -rf .calypso_cache
but would be nice to either have better diagnostic error messages or fix this altogether or tell user to clear cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant