re PR c++/18758 (ICE redeclaring struct as template)
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 2 Dec 2004 13:35:15 +0000 (13:35 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 2 Dec 2004 13:35:15 +0000 (13:35 +0000)
commit55dcbc1297c0c6212c99412ca30de1c204964f02
tree378e86f8b21ad22c0ba9cd81f09bf030e8492e22
parent9b8d9ac39f3183ec65a452cc0bc9de7f546eab85
re PR c++/18758 (ICE redeclaring struct as template)

cp:
PR c++/18758
* parser.c (cp_parser_class_head): Return NULL_TREE when
push_template_decl fails.  Update comment.
testsuite:
PR 18758
* g++.dg/parse/crash21.C: New.

From-SVN: r91636
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash21.C [new file with mode: 0644]