-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
Assertion failed: (isIrVarCreated(vd) && "Variable not resolved."), function DtoSymbolAddress, file ldc/gen/llvmhelpers.cpp, line 1773. #953
Comments
with -vv:
|
Confirmed with GitHub master. |
The The workaround does not have equal semantics. Here the call is always evaluated and the destructor is always run. |
…are turned off. Otherwise there is the possibility that temporaries are found and we try to call the destructor on them. This fixes issue ldc-developers#953.
I created a fix for this issue. Would be nice if someone could create a test case which does not depend on the standard library. (E.g. the test case does not compile with dmd from trunk.) |
ldmd2 -release -c -of/tmp/z02 main.d
main.d:
it works if we remove '-release' or if we have this:
auto temp=arg.match(
); assert(temp); instead of assert(arg.match(
));ldc2 --version
LDC - the LLVM D compiler (cf0589):
based on DMD v2.066.1 and LLVM 3.6.1
Default target: x86_64-apple-darwin14.3.0
Host CPU: core-avx2
The text was updated successfully, but these errors were encountered: