re PR c++/7939 (ICE on function template specialization)
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Tue, 16 Sep 2003 15:27:51 +0000 (15:27 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Tue, 16 Sep 2003 15:27:51 +0000 (15:27 +0000)
commitae8803a8e1d21a5813775816ae915f4ccd92d6c5
tree3268e9ec73fc007a6eef8e295bc9f17a380ae9f3
parent6cd2fc59b0e76bbb11c1b81590d03477551ae07c
re PR c++/7939 (ICE on function template specialization)

PR c++/7939
* typeck.c (comptypes): Don't ICE when its first argument is
error_mark_node.
(compparms): Reverse the arguments of same_type_p.

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

From-SVN: r71432
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash11.C [new file with mode: 0644]