diff options
author | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-22 12:01:44 +0000 |
---|---|---|
committer | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-22 12:01:44 +0000 |
commit | 8dba02f779af476cdaf6c33c05eb0d7480acec95 (patch) | |
tree | b94f65ebd41d3c48ba009c669b5ad7aae0e5fc93 /libcpp | |
parent | ac42ecbd18cab1fdfb50ad161d437f2edf14f2b0 (diff) | |
download | gcc-8dba02f779af476cdaf6c33c05eb0d7480acec95.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108947 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 5 | ||||
-rw-r--r-- | libcpp/include/cpplib.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index d96b55f07a6..e21ea6dc524 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,8 @@ +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. + 2005-12-07 Jon Grimm <jgrimm2@us.ibm.com> Ben Elliston <bje@au.ibm.com> diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h index b5bece5e5d6..0ab66357341 100644 --- a/libcpp/include/cpplib.h +++ b/libcpp/include/cpplib.h @@ -172,6 +172,8 @@ struct cpp_string GTY(()) #define NAMED_OP (1 << 4) /* C++ named operators. */ #define NO_EXPAND (1 << 5) /* Do not macro-expand this token. */ #define BOL (1 << 6) /* Token at beginning of line. */ +#define PURE_ZERO (1 << 7) /* Single 0 digit, used by the C++ frontend, + set in c-lex.c. */ /* Specify which field, if any, of the cpp_token union is used. */ |