[Issue 2935] New: ICE(out.c) using struct with constructor as function default argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 4 07:12:42 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2935

           Summary: ICE(out.c) using struct with constructor as function
                    default argument
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: clugdbug at yahoo.com.au


This is a variation of bug 2437, but ICEs in a completely different place.
---
struct Foo{
   int z;
   this(int a){z=a;}
}
void bar(Foo a = Foo(1)){ }
void foo() { bar(); }
---
Internal error: ..\ztc\out.c 1199


-- 



More information about the Digitalmars-d-bugs mailing list