public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23333] New: accepts invalid pure specifier
@ 2005-08-11 17:28 pinskia at gcc dot gnu dot org
2005-08-18 3:27 ` [Bug c++/23333] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-11 17:28 UTC (permalink / raw)
To: gcc-bugs
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;
--
Summary: accepts invalid pure specifier
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23333
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/23333] accepts invalid pure specifier
2005-08-11 17:28 [Bug c++/23333] New: accepts invalid pure specifier pinskia at gcc dot gnu dot org
@ 2005-08-18 3:27 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-18 3:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-18 03:24 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-08-18 03:24:23
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23333
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/23333] accepts invalid pure specifier
[not found] <bug-23333-6528@http.gcc.gnu.org/bugzilla/>
2005-12-09 15:56 ` reichelt at gcc dot gnu dot org
2005-12-22 12:01 ` reichelt at gcc dot gnu dot org
@ 2005-12-22 12:08 ` reichelt at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-12-22 12:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from reichelt at gcc dot gnu dot org 2005-12-22 12:08 -------
Fixed on mainline.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23333
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/23333] accepts invalid pure specifier
[not found] <bug-23333-6528@http.gcc.gnu.org/bugzilla/>
2005-12-09 15:56 ` reichelt at gcc dot gnu dot org
@ 2005-12-22 12:01 ` reichelt at gcc dot gnu dot org
2005-12-22 12:08 ` reichelt at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-12-22 12:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from reichelt at gcc dot gnu dot org 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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23333
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/23333] accepts invalid pure specifier
[not found] <bug-23333-6528@http.gcc.gnu.org/bugzilla/>
@ 2005-12-09 15:56 ` reichelt at gcc dot gnu dot org
2005-12-22 12:01 ` reichelt at gcc dot gnu dot org
2005-12-22 12:08 ` reichelt at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-12-09 15:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from reichelt at gcc dot gnu dot org 2005-12-09 15:56 -------
Patch posted.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |reichelt at gcc dot gnu dot
|dot org |org
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |12/msg00672.html
Status|NEW |ASSIGNED
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23333
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-12-22 12:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-11 17:28 [Bug c++/23333] New: accepts invalid pure specifier pinskia at gcc dot gnu dot org
2005-08-18 3:27 ` [Bug c++/23333] " pinskia at gcc dot gnu dot org
[not found] <bug-23333-6528@http.gcc.gnu.org/bugzilla/>
2005-12-09 15:56 ` reichelt at gcc dot gnu dot org
2005-12-22 12:01 ` reichelt at gcc dot gnu dot org
2005-12-22 12:08 ` reichelt at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).