re PR c++/23333 (accepts invalid pure specifier)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Thu, 22 Dec 2005 12:01:44 +0000 (12:01 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Thu, 22 Dec 2005 12:01:44 +0000 (12:01 +0000)
commitab84748af1b9eb158f6a2cb0d2f8be97f196a5f2
treeb94f65ebd41d3c48ba009c669b5ad7aae0e5fc93
parent110eec241d7bc08f91573738b449bafbb52e3498
re PR c++/23333 (accepts invalid pure specifier)

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.

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