www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 883] New: ICE: nested templates with integer arguments

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

           Summary: ICE: nested templates with integer arguments
           Product: D
           Version: 1.001
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: lio lunesu.com


// Not sure if this is valid code or not:
struct Foo(int I)
{
        void Bar(int A)( Foo!(A) x ) {}
}
void main()
{
        Foo!(1) x,y;
        x.Bar(y);//needed for ICE
}

parse     ice
semantic  ice
import    object
semantic2 ice
semantic3 ice
*access violation at 0x009f9a91


-- 
Jan 24 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=883


thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Added to DStress as
http://dstress.kuehne.cn/run/t/template_57_A.d

Seems to be fixed in DMD-1.010.


-- 
Apr 05 2007