[Issue 5595] Compiler crash on heavy std.algorithm use

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 16 14:25:59 PST 2011


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



--- Comment #5 from Don <clugdbug at yahoo.com.au> 2011-02-16 14:23:24 PST ---
Another reduction, uses test1.d and test2.d from the previous comment. It's
clear that IFTI is not required. The issue is instantiating a tuple with an
overload set. If you change the baz(F...) to baz(F) you get:
test0.d(7): Error: template instance baz!(__anonymous) does not match template
declaration baz(F)
which shows that the overload set really doesn't have an identifier.
Also, you can replace the (F...) with (alias F), and still get the segfault. So
it is not a problem with tuples; it's a problem with overload sets of
templates.

=====

import test1, test2;

void foo(A)() {}

template baz(F...)
{
    enum int baz = 1;
}

static assert(baz!bar == baz!foo);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list