www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1428] New: Segfault on template specialization with delegates and tuples

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: reiner.pope 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;


-- 
Aug 17 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1428


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |FIXED





Fixed DMD2.030 and 1.045.

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