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++/35138] [4.3 Regression] g++ rejects valid code



------- Comment #8 from jakub at gcc dot gnu dot org  2008-02-13 22:31 -------
Subject: Bug 35138

Author: jakub
Date: Wed Feb 13 22:30:43 2008
New Revision: 132298

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132298
Log:
        PR c++/35138
        * parser.c (cp_parser_pseudo_destructor_name): If next tokens
        are not identifier :: ~, return before calling cp_parser_type_name.

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

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


-- 


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


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