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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 5 15:54:03 PST 2007


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


webmaster at villagersonline.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |webmaster at villagersonline.co
                   |                            |m




------- Comment #1 from webmaster at villagersonline.com  2007-03-05 17:53 -------
Turns out that it SEGVs also when the Tuple is not empty:
  template Tuple(Elements...) {
    alias Elements Tuple;
  }
  struct bar {}
  struct foo {
    Tuple!(bar) elements;
  }
  static assert(foo.elements.length == 1);


-- 



More information about the Digitalmars-d-bugs mailing list