This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++/3028: 3.0 Compiler complains about template that used to work under 2.95


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]