[Issue 2555] New: Segfault using invalid tuple property in a declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 5 00:41:47 PST 2009


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

           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
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: clugdbug at yahoo.com.au


-----
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
issue.
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"); }


-- 



More information about the Digitalmars-d-bugs mailing list