www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=643

           Summary: dmd crashes with fwd-referenced .sizeof via aliases
           Product: D
           Version: 0.176
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: kinaba is.s.u-tokyo.ac.jp


// 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.


-- 
Dec 04 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail 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-----
Dec 07 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=643


thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         OS/Version|Windows                     |All
         Resolution|                            |FIXED




------- Comment #2 from thomas-dloop kuehne.cn  2007-01-01 15:23 -------
fixed by DMD-0.178


-- 
Jan 01 2007