This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23333] accepts invalid pure specifier
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Dec 2005 12:01:49 -0000
- Subject: [Bug c++/23333] accepts invalid pure specifier
- References: <bug-23333-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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