[Issue 1026] New: dmd SEGV when checking length of Tuple elements when length == 0

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 5 11:39:22 PST 2007


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

           Summary: dmd SEGV when checking length of Tuple elements when
                    length == 0
           Product: D
           Version: 1.007
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: webmaster at villagersonline.com


The following code segfaults dmd 1.007 on Linux:
  template Tuple(Elements...) {
    alias Elements Tuple;
  }
  struct foo {
    Tuple!() elements;
  }
  static assert(foo.elements.length == 0);


-- 



More information about the Digitalmars-d-bugs mailing list