[Issue 7793] static assert( void_function() ) gives misleading error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 22 10:48:39 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7793



--- Comment #4 from github-bugzilla at puremagic.com 2012-06-22 10:50:59 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/6610acf74883822609e165a470fbe6c812e03692
Fix regression introduced by issue 7793 fix.

In 3bfac13, inc is set to 2 instead of 0, which causes errors to go by
unnoticed in some circumstances.

An alternative fix for 7793 would be to only skip invoking e->ctfeInterpret()
if the type is not bool – I'm not sure why/if returning early is preferrable
here.

https://github.com/D-Programming-Language/dmd/commit/7e501522c15ff03e4460e25cdba5c1ce2e85f445
Merge pull request #1024 from klickverbot/7793-fix

Fix regression introduced by issue 7793 fix.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list