Bug 1572 – Compiler crash on x86_64.

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2007-10-11T02:48:00Z
Last change time
2015-06-09T05:15:16Z
Keywords
ice-on-invalid-code
Assigned to
dvdfrdmn
Creator
dlang

Attachments

IDFilenameSummaryContent-TypeSize
191crash.dDemonstrate crash.text/plain138

Comments

Comment #0 by dlang — 2007-10-11T02:48:03Z
The attached code segfaults the compiler on x86_64 (binary distribution of 0.24), but does not on x86. $ /usr/local/gdc64-bin/bin/gdmd -c crash.d crash.d:0: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. $ /usr/local/gdc64-bin/bin/gdmd -q,--version -c crash.d gdc (GCC) 4.1.2 20070214 ( (gdc 0.24, using dmd 1.020)) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Comment #1 by dlang — 2007-10-11T02:48:25Z
Created attachment 191 Demonstrate crash.
Comment #2 by afb — 2007-10-11T03:02:03Z
The type of "args" is wrong, it should be std.stdarg.va_list (not void*) http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/Function#PortabilityandVariadicFunctions
Comment #3 by dvdfrdmn — 2007-10-13T15:27:31Z
The crash has been fixed. As Anders stated, this is not valid code on x86_64. *** This bug has been marked as a duplicate of 1507 ***