This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
testcase: class a { virtual void f() = 0L; }; See FIXME in parse.c: /* FIXME: Unfortunately, this will accept `0L' and `0x00' as well. We need to get information from the lexer about how the number was spelled in order to fix this problem. */ return integer_zero_node;
Confirmed.
Patch posted.
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
Fixed on mainline.