March 27, 2023 [Issue 10892] Compilation continues after static assert failing in templates | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=10892 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1305@gmail.com Resolution|--- |INVALID --- Comment #1 from RazvanN <razvan.nitu1305@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. -- |
Copyright © 1999-2021 by the D Language Foundation