diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2005-12-22 12:01:44 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2005-12-22 12:01:44 +0000 |
commit | ab84748af1b9eb158f6a2cb0d2f8be97f196a5f2 (patch) | |
tree | b94f65ebd41d3c48ba009c669b5ad7aae0e5fc93 /gcc/testsuite | |
parent | 110eec241d7bc08f91573738b449bafbb52e3498 (diff) | |
download | gcc-ab84748af1b9eb158f6a2cb0d2f8be97f196a5f2.zip gcc-ab84748af1b9eb158f6a2cb0d2f8be97f196a5f2.tar.gz gcc-ab84748af1b9eb158f6a2cb0d2f8be97f196a5f2.tar.bz2 |
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
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/parse/error25.C | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4734f81..089e088 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de> + + PR c++/23333 + * g++.dg/parse/error25.C: Add more tests. + 2005-12-22 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de> PR fortran/18990 diff --git a/gcc/testsuite/g++.dg/parse/error25.C b/gcc/testsuite/g++.dg/parse/error25.C index a726a17..360b40f 100644 --- a/gcc/testsuite/g++.dg/parse/error25.C +++ b/gcc/testsuite/g++.dg/parse/error25.C @@ -11,6 +11,7 @@ class foo virtual void bar2 () = __null; // { dg-error "invalid pure specifier" } virtual void bar3 () = 4; // { dg-error "invalid pure specifier" } virtual void bar4 () = A::f; // { dg-error "invalid pure specifier" } + virtual void bar5 () = 0l; // { dg-error "invalid pure specifier" } + virtual void bar6 () = 00; // { dg-error "invalid pure specifier" } + virtual void bar7 () = 0x0; // { dg-error "invalid pure specifier" } }; - - |