public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34488] New: [4.3 regression] ICE on invalid friend declaration
@ 2007-12-15 22:58 reichelt at gcc dot gnu dot org
2007-12-15 22:58 ` [Bug c++/34488] " reichelt at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-15 22:58 UTC (permalink / raw)
To: gcc-bugs
The following invalid testcase triggers an ICE on mainline:
================================================
struct A
{
friend A A() {}
};
================================================
bug.cc:3: error: return type specification for constructor invalid
bug.cc: In static member function 'static A::A()':
bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
--
Summary: [4.3 regression] ICE on invalid friend declaration
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34488
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/34488] [4.3 regression] ICE on invalid friend declaration
2007-12-15 22:58 [Bug c++/34488] New: [4.3 regression] ICE on invalid friend declaration reichelt at gcc dot gnu dot org
@ 2007-12-15 22:58 ` reichelt at gcc dot gnu dot org
2007-12-16 21:31 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-15 22:58 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34488
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/34488] [4.3 regression] ICE on invalid friend declaration
2007-12-15 22:58 [Bug c++/34488] New: [4.3 regression] ICE on invalid friend declaration reichelt at gcc dot gnu dot org
2007-12-15 22:58 ` [Bug c++/34488] " reichelt at gcc dot gnu dot org
@ 2007-12-16 21:31 ` jakub at gcc dot gnu dot org
2007-12-17 14:07 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-12-16 21:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jakub at gcc dot gnu dot org 2007-12-16 21:30 -------
I guess this is caused by r123312.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34488
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/34488] [4.3 regression] ICE on invalid friend declaration
2007-12-15 22:58 [Bug c++/34488] New: [4.3 regression] ICE on invalid friend declaration reichelt at gcc dot gnu dot org
2007-12-15 22:58 ` [Bug c++/34488] " reichelt at gcc dot gnu dot org
2007-12-16 21:31 ` jakub at gcc dot gnu dot org
@ 2007-12-17 14:07 ` jakub at gcc dot gnu dot org
2007-12-18 0:15 ` jakub at gcc dot gnu dot org
2007-12-18 0:29 ` jakub at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-12-17 14:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2007-12-17 14:07 -------
And related to PR22293. Testing a fix.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-12-17 14:07:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34488
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/34488] [4.3 regression] ICE on invalid friend declaration
2007-12-15 22:58 [Bug c++/34488] New: [4.3 regression] ICE on invalid friend declaration reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-12-17 14:07 ` jakub at gcc dot gnu dot org
@ 2007-12-18 0:15 ` jakub at gcc dot gnu dot org
2007-12-18 0:29 ` jakub at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-12-18 0:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2007-12-18 00:15 -------
Subject: Bug 34488
Author: jakub
Date: Tue Dec 18 00:15:32 2007
New Revision: 131025
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131025
Log:
PR c++/34488
* decl.c (grokdeclarator): Reject friend sfk_constructor
FUNCTION_TYPE.
* g++.dg/parse/friend7.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/parse/friend7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34488
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/34488] [4.3 regression] ICE on invalid friend declaration
2007-12-15 22:58 [Bug c++/34488] New: [4.3 regression] ICE on invalid friend declaration reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-12-18 0:15 ` jakub at gcc dot gnu dot org
@ 2007-12-18 0:29 ` jakub at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-12-18 0:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2007-12-18 00:29 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34488
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-12-18 0:29 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-15 22:58 [Bug c++/34488] New: [4.3 regression] ICE on invalid friend declaration reichelt at gcc dot gnu dot org
2007-12-15 22:58 ` [Bug c++/34488] " reichelt at gcc dot gnu dot org
2007-12-16 21:31 ` jakub at gcc dot gnu dot org
2007-12-17 14:07 ` jakub at gcc dot gnu dot org
2007-12-18 0:15 ` jakub at gcc dot gnu dot org
2007-12-18 0:29 ` jakub 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).