assertion failure with template instantiation of forward reference class
comco
void.unsigned at gmail.com
Wed Nov 28 16:26:02 PST 2012
When trying to compile this code:
import std.stdio;
class A;
class B(T) : T {
}
void main() {
writeln(typeid(B!A));
}
I get this error: Assertion failure: '!scope' on line 358 in file
'toobj.c'.
Shouldn't it be more like: Error: class main.A unable to resolve
forward reference in definition
Looks like a bug?
More information about the Digitalmars-d-learn
mailing list