re PR c++/14428 (incompatible template declarations accepted)
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Wed, 25 Aug 2004 14:56:10 +0000 (14:56 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Wed, 25 Aug 2004 14:56:10 +0000 (14:56 +0000)
commit2649701fbb53874b7564d0c30f0b3dbe26ffb819
tree1fbd2f23cc79db700b0a8abbac15aeb420af2829
parent0cc4be6760c201da815f4a6c3b6df927c60de955
re PR c++/14428 (incompatible template declarations accepted)

PR c++/14428
* pt.c (redeclare_class_template): Check the type of non-type and
template template parameter.

* g++.dg/template/redecl2.C: New test.

From-SVN: r86550
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/redecl2.C [new file with mode: 0644]