[Issue 12740] New: DMD accepts invalid version syntax

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 12 17:16:25 PDT 2014


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

          Issue ID: 12740
           Summary: DMD accepts invalid version syntax
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: briancschott at gmail.com

>From the vibe.d source:

------
version (VibeCustomMain) {}
else:
------

The language specification does not say that "else:" is valid, and it is not
consistent with the normal usage of "else". If you try this with a normal else
block, the compiler correctly gives the error message "Error: found ':' instead
of statement".

--


More information about the Digitalmars-d-bugs mailing list