-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
strange behavior of static asserts #585
Comments
This happens with DMD master, too. |
@schuetzm Do you know the bugzilly entry? |
No, sorry. I just compiled and ran it on DMD. |
At least there's no spec for the evaluation timing of More precise information: In dmd frontend, senamtic analysis is separated to three sub-stages - semantic1, semantic2, and semantic3. They're normally invoked in the order of their numbers. |
Thanks for digging out this old issue. I'm closing it as it has nothing to do with LDC itself. |
I noticed the following strange behavior, when playing around with new platform support for ldc.
/the druntime uses the pattern below for "static assert(false, "platform not supported");/
test.d:
gives:
expected output is (as it is for the no-bug version)
The text was updated successfully, but these errors were encountered: