diff options
author | Jakub Jelinek <jakub@redhat.com> | 2013-02-07 18:49:59 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2013-02-07 18:49:59 +0100 |
commit | 2052ce24f1200a62154b280583f068f7f7a6ed44 (patch) | |
tree | 35bf6d107c5a38a5c3a31407385d38b6175fce3d /gcc/cp/ChangeLog | |
parent | e6d7b956dbae9a91e493e7426802c63ef2322e77 (diff) | |
download | gcc-2052ce24f1200a62154b280583f068f7f7a6ed44.zip gcc-2052ce24f1200a62154b280583f068f7f7a6ed44.tar.gz gcc-2052ce24f1200a62154b280583f068f7f7a6ed44.tar.bz2 |
re PR c++/56239 (parse error calling operator() on parenthesized value-initialized temporary)
PR c++/56239
* parser.c (cp_parser_token_starts_cast_expression): Renamed to...
(cp_parser_tokens_start_cast_expression): ... this. Change parameter
to cp_parser *, call cp_lexer_peek_token first. For CPP_OPEN_PAREN,
return true only if 2nd token isn't CPP_CLOSE_PAREN.
(cp_parser_cast_expression): Adjust caller.
* g++.dg/parse/pr56239.C: New test.
From-SVN: r195859
Diffstat (limited to 'gcc/cp/ChangeLog')
-rw-r--r-- | gcc/cp/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index afaec89..57912b9 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,12 @@ 2013-02-07 Jakub Jelinek <jakub@redhat.com> + PR c++/56239 + * parser.c (cp_parser_token_starts_cast_expression): Renamed to... + (cp_parser_tokens_start_cast_expression): ... this. Change parameter + to cp_parser *, call cp_lexer_peek_token first. For CPP_OPEN_PAREN, + return true only if 2nd token isn't CPP_CLOSE_PAREN. + (cp_parser_cast_expression): Adjust caller. + PR c++/56237 * decl.c (push_local_name): Look at DECL_DISCRIMINATOR (t) only if DECL_DISCRIMINATOR_SET_P (t) rather than just |