* [Bug c++/20461] [4.0/4.1 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
@ 2005-03-13 21:22 ` pinskia at gcc dot gnu dot org
2005-03-13 21:22 ` pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-13 21:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-13 21:22 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |error-recovery
Last reconfirmed|0000-00-00 00:00:00 |2005-03-13 21:22:33
date| |
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0/4.1 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
2005-03-13 21:22 ` [Bug c++/20461] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-03-13 21:22 ` pinskia at gcc dot gnu dot org
2005-03-13 22:16 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-13 21:22 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Summary|ICE at "class 'C' does not |[4.0/4.1 Regression] ICE at
|have any field named 'f'" |"class 'C' does not have any
|error |field named 'f'" error
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0/4.1 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
2005-03-13 21:22 ` [Bug c++/20461] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-03-13 21:22 ` pinskia at gcc dot gnu dot org
@ 2005-03-13 22:16 ` pinskia at gcc dot gnu dot org
2005-03-17 22:21 ` wanderer at rsu dot ru
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-13 22:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-13 22:16 -------
Backtrace:
#0 emit_mem_initializers (mem_inits=0x0) at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/init.c:
485
#1 0x080eaf8f in cp_parser_ctor_initializer_opt_and_function_body (parser=0xb7c82c64)
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:7665
#2 0x080eb237 in cp_parser_function_definition_after_declarator (parser=0xb7c82c64, inline_p=0
'\0')
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:14868
#3 0x080f7645 in cp_parser_init_declarator (parser=0xb7c82c64, decl_specifiers=0xbff8c378,
function_definition_allowed_p=1 '\001',
member_p=0 '\0', declares_class_or_enum=Variable "declares_class_or_enum" is not available.
) at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:14813
#4 0x080f7849 in cp_parser_simple_declaration (parser=0xb7c82c64,
function_definition_allowed_p=1 '\001')
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:7007
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0/4.1 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
` (2 preceding siblings ...)
2005-03-13 22:16 ` pinskia at gcc dot gnu dot org
@ 2005-03-17 22:21 ` wanderer at rsu dot ru
2005-03-18 19:13 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: wanderer at rsu dot ru @ 2005-03-17 22:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wanderer at rsu dot ru 2005-03-17 22:21 -------
I found time of regression.
GCC CVS mainline at 2004-07-12 16:00 GMT compile testcase without problem.
GCC CVS mainline at 2004-07-12 16:20 CMT ICE at testcase
CVS changes from http://gcc.gnu.org/ml/gcc-cvs/2004-07/ in this time range:
16:16 gcc/gcc/cp name-lookup.c nathan
16:06 gcc/gcc/cp ChangeLog call.c class.c cvt.c decl ... nathan
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |nathan at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0/4.1 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
` (3 preceding siblings ...)
2005-03-17 22:21 ` wanderer at rsu dot ru
@ 2005-03-18 19:13 ` pinskia at gcc dot gnu dot org
2005-03-18 22:16 ` pcarlini at suse dot de
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-18 19:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-18 19:13 -------
*** Bug 20536 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |wwieser at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0/4.1 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
` (4 preceding siblings ...)
2005-03-18 19:13 ` pinskia at gcc dot gnu dot org
@ 2005-03-18 22:16 ` pcarlini at suse dot de
2005-03-20 17:29 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pcarlini at suse dot de @ 2005-03-18 22:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2005-03-18 22:16 -------
Notice that the ICE happen only with checking enabled, but seems easy to fix
and we can avoid "confused by earlier errors, bailing out" otherwise.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0/4.1 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
` (5 preceding siblings ...)
2005-03-18 22:16 ` pcarlini at suse dot de
@ 2005-03-20 17:29 ` pinskia at gcc dot gnu dot org
2005-03-21 11:50 ` cvs-commit at gcc dot gnu dot org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-20 17:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-20 17:29 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01879.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0/4.1 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
` (6 preceding siblings ...)
2005-03-20 17:29 ` pinskia at gcc dot gnu dot org
@ 2005-03-21 11:50 ` cvs-commit at gcc dot gnu dot org
2005-03-21 11:53 ` cvs-commit at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-21 11:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-21 11:49 -------
Subject: Bug 20461
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: paolo@gcc.gnu.org 2005-03-21 11:49:36
Modified files:
gcc/cp : ChangeLog init.c semantics.c
Log message:
2005-03-21 Paolo Carlini <pcarlini@suse.de>
PR c++/20461
PR c++/20536
* init.c (emit_mem_initializers): Don't crash on undefined
types.
2005-03-21 Paolo Carlini <pcarlini@suse.de>
PR c++/20147
* semantics.c (finish_stmt_expr_expr): Return immediately
if error_operand_p (expr).
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4669&r2=1.4670
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/init.c.diff?cvsroot=gcc&r1=1.414&r2=1.415
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.464&r2=1.465
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0/4.1 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
` (7 preceding siblings ...)
2005-03-21 11:50 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-21 11:53 ` cvs-commit at gcc dot gnu dot org
2005-03-21 12:51 ` [Bug c++/20461] [4.0 " reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-21 11:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-21 11:53 -------
Subject: Bug 20461
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: paolo@gcc.gnu.org 2005-03-21 11:53:00
Modified files:
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/parse: crash24.C crash25.C
gcc/testsuite/g++.dg/ext: stmtexpr4.C
Log message:
2005-03-21 Paolo Carlini <pcarlini@suse.de>
PR c++/20461
* g++.dg/parse/crash24.C: New test.
PR c++/20536
* g++.dg/parse/crash25.C: New test.
2005-03-21 Paolo Carlini <pcarlini@suse.de>
PR c++/20147
* g++.dg/ext/stmtexpr4.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5186&r2=1.5187
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/crash24.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/crash25.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/stmtexpr4.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
` (8 preceding siblings ...)
2005-03-21 11:53 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-21 12:51 ` reichelt at gcc dot gnu dot org
2005-03-21 12:52 ` pcarlini at suse dot de
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-03-21 12:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-03-21 12:51 -------
Hi Paolo,
the testcase g++.dg/parse/crash25.C is hosed:
// PR c++/20536
// Found by Wolfgang Wieser 03/2005.
// { do-do compile }
^^^^^^^
This should be dg-do, right?
Could you please fix that?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
` (9 preceding siblings ...)
2005-03-21 12:51 ` [Bug c++/20461] [4.0 " reichelt at gcc dot gnu dot org
@ 2005-03-21 12:52 ` pcarlini at suse dot de
2005-03-22 9:12 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pcarlini at suse dot de @ 2005-03-21 12:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2005-03-21 12:52 -------
Oops! Will do momentarily. Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
` (10 preceding siblings ...)
2005-03-21 12:52 ` pcarlini at suse dot de
@ 2005-03-22 9:12 ` cvs-commit at gcc dot gnu dot org
2005-03-22 9:29 ` cvs-commit at gcc dot gnu dot org
2005-03-22 9:36 ` pcarlini at suse dot de
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-22 9:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-22 09:11 -------
Subject: Bug 20461
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: paolo@gcc.gnu.org 2005-03-22 09:11:03
Modified files:
gcc/cp : ChangeLog init.c parser.c
Log message:
2005-03-22 Paolo Carlini <pcarlini@suse.de>
PR c++/20461
PR c++/20536
* init.c (emit_mem_initializers): Don't crash on undefined
types.
2005-03-22 Paolo Carlini <pcarlini@suse.de>
PR c++/20463
* parser.c (cp_parser_diagnose_invalid_type_name):
Check TYPE_BINFO (current_class_type) before attempting
to emit inform messages.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.13&r2=1.4648.2.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/init.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.412.2.2&r2=1.412.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.319.2.1&r2=1.319.2.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
` (11 preceding siblings ...)
2005-03-22 9:12 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-22 9:29 ` cvs-commit at gcc dot gnu dot org
2005-03-22 9:36 ` pcarlini at suse dot de
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-22 9:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-22 09:28 -------
Subject: Bug 20461
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: paolo@gcc.gnu.org 2005-03-22 09:28:26
Modified files:
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/parse: crash24.C crash25.C
gcc/testsuite/g++.dg/template: crash35.C
Log message:
2005-03-22 Paolo Carlini <pcarlini@suse.de>
PR c++/20461
* g++.dg/parse/crash24.C: New test.
PR c++/20536
* g++.dg/parse/crash25.C: New test.
2005-03-22 Paolo Carlini <pcarlini@suse.de>
PR c++/20463
* g++.dg/template/crash35.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.57&r2=1.5084.2.58
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/crash24.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/crash25.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.2.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash35.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.4.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/20461] [4.0 Regression] ICE at "class 'C' does not have any field named 'f'" error
2005-03-13 21:19 [Bug c++/20461] New: ICE at "class 'C' does not have any field named 'f'" error wanderer at rsu dot ru
` (12 preceding siblings ...)
2005-03-22 9:29 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-22 9:36 ` pcarlini at suse dot de
13 siblings, 0 replies; 15+ messages in thread
From: pcarlini at suse dot de @ 2005-03-22 9:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2005-03-22 09:30 -------
Fixed for 4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20461
^ permalink raw reply [flat|nested] 15+ messages in thread