This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Nov 2005 21:35:52 -0000
- Subject: [Bug c++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter
- References: <bug-19253-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from mmitchel at gcc dot gnu dot org 2005-11-02 21:35 -------
Subject: Bug 19253
Author: mmitchel
Date: Wed Nov 2 21:35:46 2005
New Revision: 106399
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106399
Log:
PR c++/19253
* parser.c (cp_parser_postfix_expression): Use
cp_parser_elaborated_type_specifier to handle typename-types in
functional casts.
(cp_parser_enclosed_argument_list): Skip ahead to the end of the
template argument list if the closing ">" is not found.
PR c++/19253
* g++.dg/parse/typename8.C: Compile with -w -fpermissive.
* g++.dg/parse/typename9.C: New test.
* g++/dg/parse/typename10.C: Likewise.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/typename10.C
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/typename9.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/parser.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/typename8.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19253