[Issue 10892] Compilation continues after static assert failing in templates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 27 12:41:03 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=10892

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
This issue is invalid. There is no order relationship between the declarations
inside a template scope, so the expectation that the static assert is evaluated
before the enum declaration is misguided. The general case is that the assert
actually tests something that is defined inside the the template declaration
scope, therefore we shouldn't expect a relationship order.

--


More information about the Digitalmars-d-bugs mailing list