This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/61804] rejects-valid if parenthesized temporary is incremented


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61804

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Thu Jul 17 08:32:18 2014
New Revision: 212743

URL: https://gcc.gnu.org/viewcvs?rev=212743&root=gcc&view=rev
Log:
/cp
2014-07-17  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/61804
    * parser.c (cp_parser_tokens_start_cast_expression): Return -1
    for '++' and '--'.

/testsuite
2014-07-17  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/61804
    * g++.dg/parse/pr61804.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/parse/pr61804.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]