Bug 2077 – Union literal crashes the compiler

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
PowerPC
OS
Mac OS X
Creation time
2008-05-07T22:27:00Z
Last change time
2015-06-09T05:14:57Z
Assigned to
dvdfrdmn
Creator
aronnax

Attachments

IDFilenameSummaryContent-TypeSize
253union_literal.dSource listingtext/plain697

Comments

Comment #0 by aronnax — 2008-05-07T22:27:58Z
Initializing a union with a union literal crashes the compiler: $ gdc union_literal.d union_literal.d: In function 'main': union_literal.d:33: internal compiler error: Bus error Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. See attached file for code listing. I am using gcc-4.1.2+dgcc on Mac OS X Tiger 10.5.2.
Comment #1 by aronnax — 2008-05-07T22:28:51Z
Created attachment 253 Source listing
Comment #2 by dvdfrdmn — 2008-05-11T10:46:42Z
Fixed as of release 0.25 / svn 222