c++/3028: 3.0 Compiler complains about template that used to work under 2.95
Gabriel Dos Reis
Gabriel.Dos-Reis@cmla.ens-cachan.fr
Fri Jun 1 18:22:00 GMT 2001
James L Peterson <peterson@austin.ibm.com> writes:
| I was unable to understand the template description in Stroustrup (3rd
| edition)
| well enough to tell if 3.0 or 2.9.5 was right. So you may be right that
| 3.0
| is correct. The argument for 3.0 being wrong is that IListNode is
| defined
| inside IListBase and so has to be effectively "templated" because
| IListBase is.
But GCC-3.0 is right, because IListNode is -not- a template-name.
-- Gaby
More information about the Gcc-bugs
mailing list