public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18389] New: [3.4/4.0 regression] ICE on struct declaration in for statement
@ 2004-11-09 2:41 reichelt at gcc dot gnu dot org
2004-11-09 2:42 ` [Bug c++/18389] " reichelt at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-11-09 2:41 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet causes an ICE in 3.3.x, 3.4.3,
and mainline (but not in 3.4.[012]):
=========================
void foo()
{
for (;struct A{};);
}
=========================
--
Summary: [3.4/4.0 regression] ICE on struct declaration in for
statement
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18389
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/18389] [3.4/4.0 regression] ICE on struct declaration in for statement
2004-11-09 2:41 [Bug c++/18389] New: [3.4/4.0 regression] ICE on struct declaration in for statement reichelt at gcc dot gnu dot org
@ 2004-11-09 2:42 ` reichelt at gcc dot gnu dot org
2004-11-09 2:47 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-11-09 2:42 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |3.3 3.3.5 3.4.3 4.0.0
Known to work| |3.2.3 3.4.0 3.4.1 3.4.2
Target Milestone|--- |3.4.4
Version|unknown |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18389
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/18389] [3.4/4.0 regression] ICE on struct declaration in for statement
2004-11-09 2:41 [Bug c++/18389] New: [3.4/4.0 regression] ICE on struct declaration in for statement reichelt at gcc dot gnu dot org
2004-11-09 2:42 ` [Bug c++/18389] " reichelt at gcc dot gnu dot org
@ 2004-11-09 2:47 ` pinskia at gcc dot gnu dot org
2004-11-12 18:32 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-09 2:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-09 02:46 -------
: Search converges between 2004-10-10-161002-trunk (#588) and 2004-10-11-014001-trunk
(#589).
: Search converges between 2004-10-10-004002-3.4 (#94) and 2004-10-11-004001-3.4 (#95).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-11-09 02:46:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18389
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/18389] [3.4/4.0 regression] ICE on struct declaration in for statement
2004-11-09 2:41 [Bug c++/18389] New: [3.4/4.0 regression] ICE on struct declaration in for statement reichelt at gcc dot gnu dot org
2004-11-09 2:42 ` [Bug c++/18389] " reichelt at gcc dot gnu dot org
2004-11-09 2:47 ` pinskia at gcc dot gnu dot org
@ 2004-11-12 18:32 ` mmitchel at gcc dot gnu dot org
2004-11-12 21:47 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-12 18:32 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=18389
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/18389] [3.4/4.0 regression] ICE on struct declaration in for statement
2004-11-09 2:41 [Bug c++/18389] New: [3.4/4.0 regression] ICE on struct declaration in for statement reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-11-12 18:32 ` mmitchel at gcc dot gnu dot org
@ 2004-11-12 21:47 ` cvs-commit at gcc dot gnu dot org
2004-11-12 21:57 ` cvs-commit at gcc dot gnu dot org
2004-11-12 21:58 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-12 21:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-12 21:47 -------
Subject: Bug 18389
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2004-11-12 21:47:13
Modified files:
gcc/cp : ChangeLog decl.c decl2.c parser.c pt.c tree.c
gcc/testsuite : ChangeLog
gcc/testsuite/g++.dg/ext: vla1.C vlm1.C
gcc/testsuite/g++.dg/template: crash2.C
Added files:
gcc/testsuite/g++.dg/parse: cond1.C
gcc/testsuite/g++.dg/template: array9.C call3.C ptrmem11.C
Log message:
PR c++/18389
* decl.c (start_decl): Make sure to set *pop_scope_p. Return
error_mark_node to indicate errors.
PR c++/18429
* parser.c (cp_parser_direct_declarator): Disallow non-constant
array bounds when not inside a function.
PR c++/18436
* pt.c (tsubst_copy_and_build): Do not do Koenig lookup when an
unqualified name resolves to a member function.
PR c++/18407
* pt.c (tsubst_copy_and_build): Handle qualified names used from a
derived class correctly.
* decl2.c (import_export_decl): Fix typo in comment.
* tree.c (pod_type_p): Likewise.
PR c++/18389
* g++.dg/parse/cond1.C: New test.
PR c++/18429
* g++.dg/template/array9.C: New test.
* g++.dg/ext/vla1.C: Adjust error messages.
* g++.dg/ext/vlm1.C: Likewise.
* g++.dg/template/crash2.C: Likewise.
PR c++/18436
* g++.dg/template/call3.C: New test.
PR c++/18407
* g++.dg/template/ptrmem11.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4480&r2=1.4481
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1326&r2=1.1327
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl2.c.diff?cvsroot=gcc&r1=1.756&r2=1.757
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.278&r2=1.279
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.944&r2=1.945
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/tree.c.diff?cvsroot=gcc&r1=1.418&r2=1.419
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4588&r2=1.4589
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/vla1.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/vlm1.C.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/cond1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/array9.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/call3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/ptrmem11.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash2.C.diff?cvsroot=gcc&r1=1.2&r2=1.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18389
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/18389] [3.4/4.0 regression] ICE on struct declaration in for statement
2004-11-09 2:41 [Bug c++/18389] New: [3.4/4.0 regression] ICE on struct declaration in for statement reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-11-12 21:47 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-12 21:57 ` cvs-commit at gcc dot gnu dot org
2004-11-12 21:58 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-12 21:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-12 21:57 -------
Subject: Bug 18389
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: mmitchel@gcc.gnu.org 2004-11-12 21:57:31
Modified files:
gcc/cp : decl.c pt.c ChangeLog
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/parse: cond1.C
gcc/testsuite/g++.dg/template: call3.C ptrmem11.C
Log message:
PR c++/18389
* decl.c (start_decl): Make sure to set *pop_scope_p. Return
error_mark_node to indicate errors.
PR c++/18436
* pt.c (tsubst_copy_and_build): Do not do Koenig lookup when an
unqualified name resolves to a member function.
PR c++/18407
* pt.c (tsubst_copy_and_build): Handle qualified names used from a
derived class correctly.
* decl2.c (import_export_decl): Fix typo in comment.
* tree.c (pod_type_p): Likewise.
PR c++/18389
* g++.dg/parse/cond1.C: New test.
PR c++/18436
* g++.dg/template/call3.C: New test.
PR c++/18407
* g++.dg/template/ptrmem11.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1174.2.27&r2=1.1174.2.28
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.816.2.45&r2=1.816.2.46
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.178&r2=1.3892.2.179
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.308&r2=1.3389.2.309
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/cond1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/call3.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/ptrmem11.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18389
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/18389] [3.4/4.0 regression] ICE on struct declaration in for statement
2004-11-09 2:41 [Bug c++/18389] New: [3.4/4.0 regression] ICE on struct declaration in for statement reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-11-12 21:57 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-12 21:58 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-12 21:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-11-12 21:57 -------
Fixed in GCC 3.4.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18389
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-11-12 21:58 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-09 2:41 [Bug c++/18389] New: [3.4/4.0 regression] ICE on struct declaration in for statement reichelt at gcc dot gnu dot org
2004-11-09 2:42 ` [Bug c++/18389] " reichelt at gcc dot gnu dot org
2004-11-09 2:47 ` pinskia at gcc dot gnu dot org
2004-11-12 18:32 ` mmitchel at gcc dot gnu dot org
2004-11-12 21:47 ` cvs-commit at gcc dot gnu dot org
2004-11-12 21:57 ` cvs-commit at gcc dot gnu dot org
2004-11-12 21:58 ` 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).