[Issue 1428] New: Segfault on template specialization with delegates and tuples

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 17 18:13:03 PDT 2007


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

           Summary: Segfault on template specialization with delegates and
                    tuples
           Product: D
           Version: 2.003
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: reiner.pope at gmail.com


The following segfaults the compiler. If you remove the tuples, either
specialisation, or do a number of other things, the problem disappears.

template tuple(T...)
{
        alias T tuple;
}

template Foo(S : void delegate(tuple!(int))) {}

template Foo(S : void delegate(tuple!(int, int))) {}

alias Foo!(void delegate(int)) Bar;


-- 



More information about the Digitalmars-d-bugs mailing list