Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 23333
Product:  
Component:  
Status: RESOLVED
Resolution: FIXED
Assigned To: Volker Reichelt <reichelt@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Andrew Pinski <pinskia@gcc.gnu.org>
Add CC:
CC:
Remove selected CCs
Build:
Patch URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 23333 depends on: Show dependency tree
Show dependency graph
Bug 23333 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: 2005-08-18 03:24 Opened: 2005-08-11 17:28
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;

------- Comment #1 From Andrew Pinski 2005-08-18 03:24 -------
Confirmed.

------- Comment #2 From Volker Reichelt 2005-12-09 15:56 -------
Patch posted.

------- Comment #3 From Volker Reichelt 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

------- Comment #4 From Volker Reichelt 2005-12-22 12:08 -------
Fixed on mainline.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug