re PR c++/22233 (ICE with wrong number of template parameters)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Mon, 22 Aug 2005 09:48:26 +0000 (09:48 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Mon, 22 Aug 2005 09:48:26 +0000 (09:48 +0000)
commitf1cc051537237722be3976b782bfd4336610ba55
tree7689a3ef10af399440a1361ba2ec2f69567cd4aa
parentdff1b563b3b6568ed7fca16e435a929f255bce0a
re PR c++/22233 (ICE with wrong number of template parameters)

PR c++/22233
* pt.c (push_template_decl_real): Return error_mark_node if the
number of template parameters does not match previous definition.

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

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