public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19149] New: [4.0 Regression] seg fault on invalid code
@ 2004-12-24 18:01 pinskia at gcc dot gnu dot org
2004-12-24 18:02 ` [Bug c++/19149] " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-24 18:01 UTC (permalink / raw)
To: gcc-bugs
struct QChar {
QChar( char c );
QChar( const QChar& c );
static const ;
} ;
: Search converges between 2004-06-24-trunk (#471) and 2004-06-26-trunk (#472).
--
Summary: [4.0 Regression] seg fault on invalid code
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: minor
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=19149
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/19149] [4.0 Regression] seg fault on invalid code
2004-12-24 18:01 [Bug c++/19149] New: [4.0 Regression] seg fault on invalid code pinskia at gcc dot gnu dot org
@ 2004-12-24 18:02 ` pinskia at gcc dot gnu dot org
2004-12-24 18:03 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-24 18:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-24 18:02 -------
I should note I found this while reducing PR 19148.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19149
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/19149] [4.0 Regression] seg fault on invalid code
2004-12-24 18:01 [Bug c++/19149] New: [4.0 Regression] seg fault on invalid code pinskia at gcc dot gnu dot org
2004-12-24 18:02 ` [Bug c++/19149] " pinskia at gcc dot gnu dot org
@ 2004-12-24 18:03 ` pinskia at gcc dot gnu dot org
2004-12-24 18:25 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-24 18:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-24 18:03 -------
A little further reduced:
struct QChar {
static const ;
} ;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19149
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/19149] [4.0 Regression] seg fault on invalid code
2004-12-24 18:01 [Bug c++/19149] New: [4.0 Regression] seg fault on invalid code pinskia at gcc dot gnu dot org
2004-12-24 18:02 ` [Bug c++/19149] " pinskia at gcc dot gnu dot org
2004-12-24 18:03 ` pinskia at gcc dot gnu dot org
@ 2004-12-24 18:25 ` pinskia at gcc dot gnu dot org
2004-12-24 18:33 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-24 18:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-24 18:25 -------
Here is the backtrace:
#0 0x0003ddc0 in check_tag_decl (declspecs=0xbffff5e0) at /Users/pinskia/src/local/gcc/gcc/cp/
decl.c:3517
#1 0x001407e8 in cp_parser_member_declaration (parser=0x428a2548) at /Users/pinskia/src/local/
gcc/gcc/cp/parser.c:12962
#2 0x0014063c in cp_parser_member_specification_opt (parser=0x428a2548) at /Users/pinskia/src/
local/gcc/gcc/cp/parser.c:12851
#3 0x0013ee3c in cp_parser_class_specifier (parser=0x428a2548) at /Users/pinskia/src/local/gcc/
gcc/cp/parser.c:12310
#4 0x001392dc in cp_parser_type_specifier (parser=0x428a2548,
flags=CP_PARSER_FLAGS_OPTIONAL, decl_specs=0xbffff8a0, is_declaration=1 '\001',
declares_class_or_enum=0xbffff838, is_cv_qualifier=0xbffff83c "") at /Users/pinskia/src/local/gcc/
gcc/cp/parser.c:9158
#5 0x00135774 in cp_parser_decl_specifier_seq (parser=0x428a2548,
flags=CP_PARSER_FLAGS_OPTIONAL, decl_specs=0xbffff8a0, declares_class_or_enum=0xbffff8f0) at /
Users/pinskia/src/local/gcc/gcc/cp/parser.c:7154
#6 0x00135170 in cp_parser_simple_declaration (parser=0x428a2548,
function_definition_allowed_p=1 '\001') at /Users/pinskia/src/local/gcc/gcc/cp/parser.c:6850
#7 0x00135114 in cp_parser_block_declaration (parser=0x428a2548, statement_p=0 '\0') at /Users/
pinskia/src/local/gcc/gcc/cp/parser.c:6811
#8 0x00134efc in cp_parser_declaration (parser=0x428a2548) at /Users/pinskia/src/local/gcc/gcc/
cp/parser.c:6728
#9 0x00134b58 in cp_parser_declaration_seq_opt (parser=0x428a2548) at /Users/pinskia/src/local/
gcc/gcc/cp/parser.c:6632
#10 0x0012dc10 in cp_parser_translation_unit (parser=0x428a2548) at /Users/pinskia/src/local/gcc/
gcc/cp/parser.c:2556
(gdb) p declspecs->type
$2 = 0x0
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-12-24 18:25:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19149
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/19149] [4.0 Regression] seg fault on invalid code
2004-12-24 18:01 [Bug c++/19149] New: [4.0 Regression] seg fault on invalid code pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-12-24 18:25 ` pinskia at gcc dot gnu dot org
@ 2004-12-24 18:33 ` pinskia at gcc dot gnu dot org
2004-12-27 18:28 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-24 18:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-24 18:33 -------
I think this was caused by:
2004-06-23 Mark Mitchell <mark@codesourcery.com>
* Make-lang.in (cp/lex.o): Do not depend on cp/lex.h.
(cp/decl.o): Likewise.
(cp/decl2.o): Likewise.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19149
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/19149] [4.0 Regression] seg fault on invalid code
2004-12-24 18:01 [Bug c++/19149] New: [4.0 Regression] seg fault on invalid code pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-12-24 18:33 ` pinskia at gcc dot gnu dot org
@ 2004-12-27 18:28 ` mmitchel at gcc dot gnu dot org
2004-12-27 19:03 ` cvs-commit at gcc dot gnu dot org
2004-12-27 19:04 ` mmitchel at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-12-27 18:28 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19149
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/19149] [4.0 Regression] seg fault on invalid code
2004-12-24 18:01 [Bug c++/19149] New: [4.0 Regression] seg fault on invalid code pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-12-27 18:28 ` mmitchel at gcc dot gnu dot org
@ 2004-12-27 19:03 ` cvs-commit at gcc dot gnu dot org
2004-12-27 19:04 ` mmitchel at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-27 19:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-27 19:03 -------
Subject: Bug 19149
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2004-12-27 19:03:19
Modified files:
gcc/testsuite : ChangeLog
gcc/cp : ChangeLog decl.c
Added files:
gcc/testsuite/g++.dg/parse: error23.C
Log message:
PR c++/19149
* decl.c (check_tag_decl): Robustify.
PR c++/19149
* g++.dg/parse/error23.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4824&r2=1.4825
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/error23.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4559&r2=1.4560
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1346&r2=1.1347
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19149
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/19149] [4.0 Regression] seg fault on invalid code
2004-12-24 18:01 [Bug c++/19149] New: [4.0 Regression] seg fault on invalid code pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-12-27 19:03 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-27 19:04 ` mmitchel at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-12-27 19:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-12-27 19:04 -------
Fixed in GCC 4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19149
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-12-27 19:04 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-24 18:01 [Bug c++/19149] New: [4.0 Regression] seg fault on invalid code pinskia at gcc dot gnu dot org
2004-12-24 18:02 ` [Bug c++/19149] " pinskia at gcc dot gnu dot org
2004-12-24 18:03 ` pinskia at gcc dot gnu dot org
2004-12-24 18:25 ` pinskia at gcc dot gnu dot org
2004-12-24 18:33 ` pinskia at gcc dot gnu dot org
2004-12-27 18:28 ` mmitchel at gcc dot gnu dot org
2004-12-27 19:03 ` cvs-commit at gcc dot gnu dot org
2004-12-27 19:04 ` mmitchel 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).