[Issue 1667] Forward reference to struct initializer in template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 13 17:10:15 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1667
smjg at iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg at iname.com
------- Comment #2 from smjg at iname.com 2008-11-13 19:10 -------
Is this really a forward reference issue? There is no forward reference in the
code. Moreover, under DMD 1.036 it generates a quite different set of errors:
bz1667.d(8): template instance identifier 'Tuple' is not defined
bz1667.d(11): template instance bz1667.Foo!(S) error instantiating
bz1667.d(11): template instance identifier 'Tuple' is not defined
It's true that the errors change if the pieces are swapped around - if the
alias t is moved to the top
bz1667.d(1): template instance forward reference to template declaration Foo(T)
bz1667.d(1): template instance identifier 'Tuple' is not defined
but that's not the problem being reported here.
--
More information about the Digitalmars-d-bugs
mailing list