re PR c++/15044 (ICE on syntax error, template header.)
authorMark Mitchell <mark@codesourcery.com>
Mon, 24 May 2004 02:29:34 +0000 (02:29 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 24 May 2004 02:29:34 +0000 (02:29 +0000)
commit15077df5dcd5c9fd996f31cd56ed12a677a2b771
tree53a75488b33cd796dfcbd46bc8916fe219c7f84b
parent8eeea0c1c72e64f95114c53e9a41dabc98c8978b
re PR c++/15044 (ICE on syntax error, template header.)

PR c++/15044
* parser.c (cp_parser_class_head): Robustify.

PR c++/15317
* parser.c (cp_parser_decl_specifier_seq): Correct error in
comment.
(cp_parser_constructor_declarator_p): Treat attributes
as decl-specifiers.

PR c++/15329
* typeck.c (build_unary_op): Do not attempt to resolve casts to
base classes in templates.

PR c++/15044
* g++.dg/template/error12.C: New test.

PR c++/15317
* g++.dg/ext/attrib15.C: New test.

PR c++/15329
* g++.dg/template/ptrmem9.C: New test.

From-SVN: r82191
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attrib15.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/error12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/ptrmem9.C [new file with mode: 0644]