re PR c++/28637 (ICE on invalid template parameter)
authorLee Millward <lee.millward@codesourcery.com>
Wed, 9 Aug 2006 18:43:06 +0000 (18:43 +0000)
committerLee Millward <lmillward@gcc.gnu.org>
Wed, 9 Aug 2006 18:43:06 +0000 (18:43 +0000)
commit2d8ba2c76b324d0a4328520a825160034cfb8fff
treeba6a351afa64d05f3f2c625dcbef7f1651b2475e
parentcef6b86c004ea1b65ca4178e569c388fb07a347e
re PR c++/28637 (ICE on invalid template parameter)

2006-08-09  Lee Millward  <lee.millward@codesourcery.com>

       PR c++/28637
       * pt.c (coerce_template_parms): Copy across the
       invalid template arguments to the new template inner arguments.
       (retrieve_specialization): Robustify.

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

       PR c++/28638
       * pt.c (coerce_template_template_parms): Robustify.

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

       PR c++/28639
       * error.c (dump_template_parms): Robustify.

       PR c++/28640
       * pt.c (redeclare_class_template): Robustify

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

       PR c++/28641
       * pt.c (type_unification_real): Robustify.

From-SVN: r116043
gcc/cp/ChangeLog
gcc/cp/error.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/void3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/void4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/void5.C [new file with mode: 0644]