This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23694] [3.4/4.0/4.1 Regression] ICE after error about extern "C".
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2005 11:40:30 -0000
- Subject: [Bug c++/23694] [3.4/4.0/4.1 Regression] ICE after error about extern "C".
- References: <20050902122429.23694.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-09-05 11:40 -------
Confirmed.
Here's a shorter testcase which even crashes gcc 3.4.0
(works with GCC 3.3.6 and earlier):
===========================
extern "C" struct A
{
friend void foo(int) {}
friend void foo() {}
};
===========================
bug.cc:4: error: declaration of C function 'void foo()' conflicts with
bug.cc:3: error: previous declaration 'void foo(int)' here
bug.cc:4: warning: 'void foo()' is already a friend of class 'A'
bug.cc:4: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |monitored
Last reconfirmed|0000-00-00 00:00:00 |2005-09-05 11:40:29
date| |
Summary|[4.0/4.1 Regression] ICE |[3.4/4.0/4.1 Regression] ICE
|after error about extern |after error about extern
|"C". |"C".
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23694