[Issue 3834] forward reference in templated class
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 10 16:14:58 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3834
--- Comment #1 from bearophile_hugs at eml.cc 2010-04-10 16:14:55 PDT ---
A simpler case example:
struct Foo(T) {
Node!T head;
struct Node(T) {}
}
void main() {
Foo!int f;
}
dmd 2.043 prints many errors:
test.d(2): Error: template instance Node!(int) forward references template
declaration Node(T)
test.d(2): Error: Node!(int) is used as a type
test.d(2): Error: variable test.Foo!(int).Foo.head voids have no value
test.d(6): Error: template instance test.Foo!(int) error instantiating
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list