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:

           Summary: Segfault on template specialization with delegates and
           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:

Don <clugdbug yahoo.com.au> changed:

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

--- Comment #1 from Don <clugdbug yahoo.com.au>  2009-05-14 06:43:52 PDT ---
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