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++/54526] [C++11] <:: is incorrectly treated as digraph <: followed by colon


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

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-09-25 14:44:58 UTC ---
Author: paolo
Date: Tue Sep 25 14:44:52 2012
New Revision: 191712

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191712
Log:
/cp
2012-09-25  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/54526
    * parser.c (cp_parser_template_id): In C++11 mode simply accept
    X<::A>.

/testsuite
2012-09-25  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/54526
    * g++.dg/cpp0x/parse2.C: New.
    * g++.dg/parse/error11.C: Adjust.
    * g++.dg/parse/error12.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/parse2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/parse/error11.C
    trunk/gcc/testsuite/g++.dg/parse/error12.C


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