digitalmars.D.bugs - [Issue 15453] New: Check for predefined version identifiers with a
- via Digitalmars-d-bugs (33/33) Dec 15 2015 https://issues.dlang.org/show_bug.cgi?id=15453
https://issues.dlang.org/show_bug.cgi?id=15453 Issue ID: 15453 Summary: Check for predefined version identifiers with a misspell 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. https://issues.dlang.org/show_bug.cgi?id=15452 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 (accepts-invalid) -------------------------------------- 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 well) So I think this is to be fixed. --
Dec 15 2015