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++/23333] accepts invalid pure specifier



------- Comment #3 from reichelt at gcc dot gnu dot org  2005-12-22 12:01 -------
Subject: Bug 23333

Author: reichelt
Date: Thu Dec 22 12:01:44 2005
New Revision: 108947

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108947
Log:
2005-12-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>

        PR c++/23333
        * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure.

        * c-lex.c (c_lex_with_flags): Add PURE_ZERO to cpp_flags if
        number is a single digit '0'.

        * parser.c (cp_parser_pure_specifier): Check for PURE_ZERO to
        identify a single '0'.

        * g++.dg/parse/error25.C: Add more tests.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-lex.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/parse/error25.C
    trunk/libcpp/ChangeLog
    trunk/libcpp/include/cpplib.h


-- 


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


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