------- 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

Reply via email to