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++/57771] g++ misinterprets >> in static_cast


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57771

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jul  3 20:20:30 2013
New Revision: 200647

URL: http://gcc.gnu.org/viewcvs?rev=200647&root=gcc&view=rev
Log:
    PR c++/57771
    * parser.c (cp_parser_postfix_expression) <case RID_STATCAST>
    Temporarily set parser->greater_than_is_operator_p for
    cp_parser_expression and restore from saved value afterwards.

    * g++.dg/template/arg9.C: New test.

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

Author: jakub
Date: Wed Jul  3 20:22:16 2013
New Revision: 200648

URL: http://gcc.gnu.org/viewcvs?rev=200648&root=gcc&view=rev
Log:
    PR c++/57771
    * parser.c (cp_parser_postfix_expression) <case RID_STATCAST>
    Temporarily set parser->greater_than_is_operator_p for
    cp_parser_expression and restore from saved value afterwards.

    * g++.dg/template/arg9.C: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/template/arg9.C
Modified:
    branches/gcc-4_8-branch/gcc/cp/ChangeLog
    branches/gcc-4_8-branch/gcc/cp/parser.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


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