www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15453] New: Check for predefined version identifiers with a


          Issue ID: 15453
           Summary: Check for predefined version identifiers with a
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: jiki red.email.ne.jp
        Depends on: 15452

This relates to a document issue.

The compiler normally rejects same version identifiers as predefined.
Now, 2.069 added some predefined version identifiers in forms of CRuntime_xxx.

dmd.exe -version=CRuntime_Digitalmars
Error: version identifier 'CRuntime_Digitalmars' is reserved and cannot be set

dmd.exe -version=CRuntime_DigitalMars

Checker: CRuntime_Digitalmars ( small 'm' ).
Correct: CRuntime_DigitalMars

Though the document spec has same mistake as this,
many codes in Phobos and Druntime write **Mars actually. (which is working
So I think this is to be fixed.

Dec 15 2015