June 26, 2006 [Issue 152] static assert fails with recursive templates | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=152 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from bugzilla@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. -- |
Copyright © 1999-2021 by the D Language Foundation