diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-11-02 21:34:51 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-11-02 21:34:51 +0000 |
commit | 88a33c3406ca21d94db7ca092f3f65c898e23fda (patch) | |
tree | b1be00dcdd39d0dc2ddc74914ba77a546db44ece /gcc/function.c | |
parent | eca18fb4b61a16634e61b7cf281ab65ef3292a74 (diff) | |
download | gcc-88a33c3406ca21d94db7ca092f3f65c898e23fda.zip gcc-88a33c3406ca21d94db7ca092f3f65c898e23fda.tar.gz gcc-88a33c3406ca21d94db7ca092f3f65c898e23fda.tar.bz2 |
re PR c++/19253 (bad error message / ICE for invalid template parameter)
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.
From-SVN: r106398
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions