Thread overview
[Issue 564] New: Setting predefined versions on the command line causes crashes
Nov 18, 2006
d-bugmail
Nov 22, 2006
Thomas Kuehne
Dec 03, 2006
d-bugmail
Dec 03, 2006
d-bugmail
November 18, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=564

           Summary: Setting predefined versions on the command line causes
                    crashes
           Product: D
           Version: 0.174
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic, ice-on-invalid-code, ice-on-valid-code
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: deewiant@gmail.com


Compiling any file with predefined versions set causes random errors. My results, compiling a file containing only "void main() {}":

-version=X86: Error: version identifier
'⌂▲♥éà▲♥éï▲♥éæ▲♥éù▲♥éØ▲♥éú▲♥é®▲♥é»▲♥éÁ▲♥é╗▲♥é┴▲♥éÃ▲♥é═▲♥éË▲♥é┘▲♥é▀▲♥éÕ▲♥éÙ
▲♥é±▲♥é¸▲♥é²▲♥é♣▼♥é♂▼♥é◄▼♥é↨▼♥é↔▼♥é▲▼♥é▼▼♥é
▼♥é!▼♥é"▼♥é#▼♥é$▼♥é%▼♥é&▼♥é'▼♥é(▼♥é'
is reserved and cannot be set
-version=all: Error: version identifier '' is reserved and cannot be set
-version=(any of the other listed predefined versions at
http://www.digitalmars.com/d/version.html#version): DMD crash


-- 

November 22, 2006
d-bugmail@puremagic.com schrieb am 2006-11-18:
> http://d.puremagic.com/issues/show_bug.cgi?id=564

> Compiling any file with predefined versions set causes random errors. My results, compiling a file containing only "void main() {}":
>
> -version=X86: Error: version identifier
> '⌂▲♥éà▲♥éï▲♥éæ▲♥éù▲♥éØ▲♥éú▲♥é®▲♥é»▲♥éÁ▲♥é╗▲♥é┴▲♥éÃ▲♥é═▲♥éË▲♥é┘▲♥é▀▲♥éÕ▲♥éÙ
> ▲♥é±▲♥é¸▲♥é²▲♥é♣▼♥é♂▼♥é◄▼♥é↨▼♥é↔▼♥é▲▼♥é▼▼♥é
> ▼♥é!▼♥é"▼♥é#▼♥é$▼♥é%▼♥é&▼♥é'▼♥é(▼♥é'
> is reserved and cannot be set
> -version=all: Error: version identifier '' is reserved and cannot be set
> -version=(any of the other listed predefined versions at
> http://www.digitalmars.com/d/version.html#version): DMD crash

test cases:
http://dstress.kuehne.cn/nocompile/version_23.d
http://dstress.kuehne.cn/nocompile/version_24.d
http://dstress.kuehne.cn/nocompile/version_25.d
http://dstress.kuehne.cn/nocompile/version_26.d
http://dstress.kuehne.cn/nocompile/version_27.d
http://dstress.kuehne.cn/nocompile/version_28.d

Thomas


December 03, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=564


deewiant@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from deewiant@gmail.com  2006-12-03 03:59 -------
Fixed in DMD 0.176.


-- 

December 03, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=564


deewiant@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |davidl@126.com




------- Comment #3 from deewiant@gmail.com  2006-12-03 04:04 -------
*** Bug 591 has been marked as a duplicate of this bug. ***


--