Thread overview
[Issue 643] New: dmd crashes with fwd-referenced .sizeof via aliases
Dec 04, 2006
d-bugmail
Dec 07, 2006
Thomas Kuehne
Jan 01, 2007
d-bugmail
December 04, 2006
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.


-- 

December 07, 2006
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


January 01, 2007
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


--