[Issue 643] New: dmd crashes with fwd-referenced .sizeof via aliases

Thomas Kuehne thomas-dloop at kuehne.cn
Thu Dec 7 03:00:23 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com 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-----



More information about the Digitalmars-d-bugs mailing list