[Issue 12331] Wrong error message for undefined identifier at compile-time

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Apr 4 09:20:27 PDT 2017


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

Nick Treleaven <nick at geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org

--- Comment #1 from Nick Treleaven <nick at geany.org> ---
DMD 2.073.2 gives:
f625.d(6): Error: circular initialization of variable 'f625.r'

foo is allowed to read global enum r, so this seems correct behaviour. What
else should be done?

--


More information about the Digitalmars-d-bugs mailing list