[Issue 752] Assertion failure: 'e->type->ty != Ttuple' on line 4518 in file 'mtype.c'

Sean Kelly sean at f4.ca
Fri Dec 29 19:46:30 PST 2006


d-bugmail at puremagic.com wrote:
>
> ------- Comment #2 from bugzilla at digitalmars.com  2006-12-29 21:43 -------
> The statement:
> 
>         mixin .Tuple!((TList[1 .. $]))
> 
> is actually invalid, as it attempts to make a tuple of tuples. Instead,
> 
>         mixin .Tuple!(TList[1 .. $])
> 
> is correct.

This seems a slim distinction.  Adding a set of parenthesis makes the 
code invalid?

 > This is also wrong:
> 
>         Tuple!(int, long) T;
>         T val;
> 
> as T is not declared as being a type.

Yup, I'm aware of this.  The code actually has a few bugs in it.  But it 
still shouldn't cause an assertion failure in the compiler.


More information about the Digitalmars-d-bugs mailing list