Summary: Segfault using invalid tuple property in a declaration
           Product: D
           Version: 1.038
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD

int foo(T...)(char [T.sizeof] x)
    return 0;
int c = foo!(int, int)("yy");
It also segfaults if the declaration is in a function, so it's not a CTFE
It segfaults if any invalid property is used.
int foo(T...)(char [T.z] x) {  return 0; }
void main() { int c = foo!(int, int)("yy"); }


Reply via email to