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

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


Reply via email to