[Issue 152] static assert fails with recursive templates
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 25 18:00:27 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=152
bugzilla at digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #1 from bugzilla at digitalmars.com 2006-06-25 20:00 -------
It isn't guaranteed what order the declarations are evaluated. The problem here
isn't that the static assert doesn't trip, it's that there's an infinite
recursion which is (correctly) diagnosed with a stack overflow message.
Should use a static if construct if the order of evaluation is needed.
--
More information about the Digitalmars-d-bugs
mailing list