digitalmars.D - dmd 2.054 segfaults
Here is a reduced test case. Before filing a bug report, just wanted to make
sure if I am doing something obviously wrong here.
import std.stdio;
struct Foo(IF, size_t N) { }
interface Bar { }
void main() {
void printFoo(T: Foo!(IF, N), IF, size_t N)(T foo)
if(is(IF == interface)) {
writeln("Type: ", T.stringof);
}
Foo!(Bar, 1) foo;
printFoo(foo);
}
Jul 12 2011
On Jul 13, 11 00:33, d coder wrote:
import std.stdio;
struct Foo(IF, size_t N) { }
interface Bar { }
void main() {
void printFoo(T: Foo!(IF, N), IF, size_t N)(T foo)
if(is(IF == interface)) {
writeln("Type: ", T.stringof);
}
Foo!(Bar, 1) foo;
printFoo(foo);
}
Seems to be my fault :|. Please file a bugzilla anyway. The compiler
should not segfault whether you're doing right or wrong.
Jul 12 2011








KennyTM~ <kennytm gmail.com>