public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28506] New: [4.0/4.1/4.2 regression] ICE with initializers for functions
@ 2006-07-26 21:45 reichelt at gcc dot gnu dot org
2006-07-27 3:40 ` [Bug c++/28506] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-26 21:45 UTC (permalink / raw)
To: gcc-bugs
The following code snippet causes an ICE since GCC 4.0.0:
====================================
struct A
{
virtual void* foo() = 1;
};
====================================
bug.cc:3: internal compiler error: in grokfield, at cp/decl2.c:850
Please submit a full bug report, [etc.]
A similar code snippet causes an ICE in the same place since GCC 4.1.1:
====================================
struct A
{
void operator()()() = 1;
};
====================================
bug.cc:3: error: 'operator()' declared as function returning a function
bug.cc:3: internal compiler error: in grokfield, at cp/decl2.c:850
Please submit a full bug report, [etc.]
The 4.1.1 regression in probably fallout from PR 26122.
--
Summary: [4.0/4.1/4.2 regression] ICE with initializers for
functions
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
BugsThisDependsOn: 26122
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28506
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28506] [4.0/4.1/4.2 regression] ICE with initializers for functions
2006-07-26 21:45 [Bug c++/28506] New: [4.0/4.1/4.2 regression] ICE with initializers for functions reichelt at gcc dot gnu dot org
@ 2006-07-27 3:40 ` pinskia at gcc dot gnu dot org
2006-07-31 23:36 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-27 3:40 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28506
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28506] [4.0/4.1/4.2 regression] ICE with initializers for functions
2006-07-26 21:45 [Bug c++/28506] New: [4.0/4.1/4.2 regression] ICE with initializers for functions reichelt at gcc dot gnu dot org
2006-07-27 3:40 ` [Bug c++/28506] " pinskia at gcc dot gnu dot org
@ 2006-07-31 23:36 ` mmitchel at gcc dot gnu dot org
2006-08-11 22:29 ` janis at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-31 23:36 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28506
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28506] [4.0/4.1/4.2 regression] ICE with initializers for functions
2006-07-26 21:45 [Bug c++/28506] New: [4.0/4.1/4.2 regression] ICE with initializers for functions reichelt at gcc dot gnu dot org
2006-07-27 3:40 ` [Bug c++/28506] " pinskia at gcc dot gnu dot org
2006-07-31 23:36 ` mmitchel at gcc dot gnu dot org
@ 2006-08-11 22:29 ` janis at gcc dot gnu dot org
2006-08-14 19:03 ` reichelt at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-08-11 22:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from janis at gcc dot gnu dot org 2006-08-11 22:29 -------
A regression hunt using the first testcase identified the following patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=94656
r94656 | giovannibajo | 2005-02-03 10:26:22 +0000 (Thu, 03 Feb 2005)
A regression hunt using the second testcase identified the following patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=112869
r112869 | mmitchel | 2006-04-11 22:59:57 +0000 (Tue, 11 Apr 2006)
--
janis at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |giovannibajo at gcc dot gnu
| |dot org, mmitchel at gcc dot
| |gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28506
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28506] [4.0/4.1/4.2 regression] ICE with initializers for functions
2006-07-26 21:45 [Bug c++/28506] New: [4.0/4.1/4.2 regression] ICE with initializers for functions reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-08-11 22:29 ` janis at gcc dot gnu dot org
@ 2006-08-14 19:03 ` reichelt at gcc dot gnu dot org
2006-10-13 4:45 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-14 19:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from reichelt at gcc dot gnu dot org 2006-08-14 19:03 -------
Confirmed by Janis.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-08-14 19:03:33
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28506
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28506] [4.0/4.1/4.2 regression] ICE with initializers for functions
2006-07-26 21:45 [Bug c++/28506] New: [4.0/4.1/4.2 regression] ICE with initializers for functions reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-08-14 19:03 ` reichelt at gcc dot gnu dot org
@ 2006-10-13 4:45 ` mmitchel at gcc dot gnu dot org
2006-10-13 8:39 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-13 4:45 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
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=28506
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28506] [4.0/4.1/4.2 regression] ICE with initializers for functions
2006-07-26 21:45 [Bug c++/28506] New: [4.0/4.1/4.2 regression] ICE with initializers for functions reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-10-13 4:45 ` mmitchel at gcc dot gnu dot org
@ 2006-10-13 8:39 ` mmitchel at gcc dot gnu dot org
2006-10-13 8:40 ` [Bug c++/28506] [4.0/4.1 " mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-13 8:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-10-13 08:38 -------
Subject: Bug 28506
Author: mmitchel
Date: Fri Oct 13 08:38:43 2006
New Revision: 117687
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117687
Log:
PR c++/28506
* parser.c (function_declarator_p): New function.
(cp_parser_init_declarator): Use it.
(cp_parser_member_declaration): Likewise.
PR c++/28506
* g++.dg/parse/pure1.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/parse/pure1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28506
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28506] [4.0/4.1 regression] ICE with initializers for functions
2006-07-26 21:45 [Bug c++/28506] New: [4.0/4.1/4.2 regression] ICE with initializers for functions reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-10-13 8:39 ` mmitchel at gcc dot gnu dot org
@ 2006-10-13 8:40 ` mmitchel at gcc dot gnu dot org
2006-10-13 14:59 ` mmitchel at gcc dot gnu dot org
2007-02-03 18:09 ` [Bug c++/28506] [4.0 " gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-13 8:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mmitchel at gcc dot gnu dot org 2006-10-13 08:40 -------
Fixed in 4.2.0.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1/4.2 regression] ICE|[4.0/4.1 regression] ICE
|with initializers for |with initializers for
|functions |functions
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28506
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28506] [4.0/4.1 regression] ICE with initializers for functions
2006-07-26 21:45 [Bug c++/28506] New: [4.0/4.1/4.2 regression] ICE with initializers for functions reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-10-13 8:40 ` [Bug c++/28506] [4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2006-10-13 14:59 ` mmitchel at gcc dot gnu dot org
2007-02-03 18:09 ` [Bug c++/28506] [4.0 " gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-13 14:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mmitchel at gcc dot gnu dot org 2006-10-13 14:59 -------
Subject: Bug 28506
Author: mmitchel
Date: Fri Oct 13 14:59:00 2006
New Revision: 117695
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117695
Log:
PR c++/28506
* parser.c (function_declarator_p): New function.
(cp_parser_init_declarator): Use it.
(cp_parser_member_declaration): Likewise.
PR c++/28506
* g++.dg/parse/pure1.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/pure1.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/parser.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28506
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28506] [4.0 regression] ICE with initializers for functions
2006-07-26 21:45 [Bug c++/28506] New: [4.0/4.1/4.2 regression] ICE with initializers for functions reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-10-13 14:59 ` mmitchel at gcc dot gnu dot org
@ 2007-02-03 18:09 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 18:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from gdr at gcc dot gnu dot org 2007-02-03 18:08 -------
Fixed in GCC-4.1.2
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28506
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-02-03 18:09 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-26 21:45 [Bug c++/28506] New: [4.0/4.1/4.2 regression] ICE with initializers for functions reichelt at gcc dot gnu dot org
2006-07-27 3:40 ` [Bug c++/28506] " pinskia at gcc dot gnu dot org
2006-07-31 23:36 ` mmitchel at gcc dot gnu dot org
2006-08-11 22:29 ` janis at gcc dot gnu dot org
2006-08-14 19:03 ` reichelt at gcc dot gnu dot org
2006-10-13 4:45 ` mmitchel at gcc dot gnu dot org
2006-10-13 8:39 ` mmitchel at gcc dot gnu dot org
2006-10-13 8:40 ` [Bug c++/28506] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2006-10-13 14:59 ` mmitchel at gcc dot gnu dot org
2007-02-03 18:09 ` [Bug c++/28506] [4.0 " gdr 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).