[Issue 573] New: Segfault from version(release) statement
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 19 14:34:40 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=573
Summary: Segfault from version(release) statement
Product: D
Version: 0.174
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: wrong-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: daekharel at gmail.com
void main() { version (release) {} else { assert(0); } }
-------
The above throws an AssertError, as it should, when compiled & linked normally
and run. However, when compiled with the "-release" flag, it segfaults when run
instead of doing nothing, as it should. Strangely, if it is compiled with
"-v=release", it runs without error.
--
More information about the Digitalmars-d-bugs
mailing list