[Bug c++/18276] [4.0 Regression] template classes that are friends of template classes
giovannibajo at libero dot it
gcc-bugzilla@gcc.gnu.org
Wed Nov 3 05:18:00 GMT 2004
------- Additional Comments From giovannibajo at libero dot it 2004-11-03 05:18 -------
Introduced by:
2004-08-25 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/14428
* pt.c (redeclare_class_template): Check the type of non-type and
template template parameter.
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?
cvsroot=gcc&r1=1.914&r2=1.915
We cannot use same_type_p to check redeclarations of template template
parameter, as the one in the friend declaration as one more level of template
nesting. This check was added for redeclaration of non-types template
parameters, so I believe that catching only that case is enough.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |lerdsuwa at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18276
More information about the Gcc-bugs
mailing list