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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 6 18:34:19 PST 2007


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





------- Comment #2 from webmaster at villagersonline.com  2007-03-06 20:34 -------
The following (nonsense) code also causes a SEGV:
  template Tuple(Elements...) {
    alias Elements Tuple;
  }
  struct foo {
    Tuple!() elements;
  }
  static assert(foo.elements[0]);


-- 



More information about the Digitalmars-d-bugs mailing list