Thread overview
[Issue 2566] New: compiler segfault from TypeTuple
Jan 07, 2009
d-bugmail
[Issue 2566] compiler ICE from TypeTuple
Apr 03, 2009
d-bugmail
[Issue 2566] Regression:compiler ICE from TypeTuple
Apr 03, 2009
d-bugmail
Apr 03, 2009
d-bugmail
January 07, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2566

           Summary: compiler segfault from TypeTuple
           Product: D
           Version: 1.038
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: site.puremagic.com@brianguertin.com


// dmd 1.038 & 1.039 segfault on this code:

import std.typetuple;

class Foo(T, U) {
        int bar(T t, U u) {
        }
}
void foo(TP ...)() {
        auto f = new Foo!(TP);
}

void main() {
        foo!(TypeTuple!(int,float))();
}

// dmd 1.037 properly reports an error:
test.d(6): function test.Foo!(int,float).Foo.bar expected to return a value of
type int
test.d(10): template instance test.Foo!(int,float) error instantiating
test.d(14): template instance test.foo!(int,float) error instantiating


-- 

April 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2566


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression
            Summary|compiler segfault from      |compiler ICE from TypeTuple
                   |TypeTuple                   |




------- Comment #1 from clugdbug@yahoo.com.au  2009-04-03 06:42 -------
No longer segfaults in DMD 1.042, now it's an ICE with

Assertion failure: 'i < parameters->dim' on line 806 in file 'template.c'

abnormal program termination

In DMD2.027, it produces:
fog.d(7): Error: template fog.foo(TP...) declaration TP is already defined

which doesn't seem correct.


-- 

April 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2566


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|regression                  |normal
            Summary|compiler ICE from TypeTuple |Regression:compiler ICE from
                   |                            |TypeTuple




------- Comment #2 from clugdbug@yahoo.com.au  2009-04-03 07:06 -------
Changing severity, since it never actually compiled.


-- 

April 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2566


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Comment #3 from clugdbug@yahoo.com.au  2009-04-03 07:11 -------
Actually it's a duplicate!

*** This bug has been marked as a duplicate of 2229 ***


--