Bug 643 – dmd crashes with fwd-referenced .sizeof via aliases

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2006-12-04T02:28:00Z
Last change time
2014-02-15T13:18:59Z
Assigned to
bugzilla
Creator
kinaba

Comments

Comment #0 by kinaba — 2006-12-04T02:28:17Z
// credit goes to http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F28 const int fooSize = Foo.sizeof; struct tagFoo {} alias tagFoo Foo; ------------------------- compiling the above code leads dmd to access violation.
Comment #1 by thomas-dloop — 2006-12-07T05:06:32Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] schrieb am 2006-12-04: > http://d.puremagic.com/issues/show_bug.cgi?id=643 > // credit goes to http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F28 > const int fooSize = Foo.sizeof; > struct tagFoo {} > alias tagFoo Foo; > ------------------------- > > compiling the above code leads dmd to access violation. Added to DStress as http://dstress.kuehne.cn/compile/a/alias_40_A.d http://dstress.kuehne.cn/compile/a/alias_40_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFd/3FLK5blCcjpWoRAiBuAJ9VntrmTrFe4hx7HWClJ4E+TQugDACfegtc VfhNqRMZvb1mE2tStXZWoVY= =LITD -----END PGP SIGNATURE-----
Comment #2 by thomas-dloop — 2007-01-01T15:23:15Z
fixed by DMD-0.178