[Issue 2566] New: compiler segfault from TypeTuple
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 7 13:35:01 PST 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 at digitalmars.com
ReportedBy: site.puremagic.com at 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
--
More information about the Digitalmars-d-bugs
mailing list