public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27100]  New: ICE with multiple friend declarations
@ 2006-04-10 13:46 reichelt at gcc dot gnu dot org
  2006-04-10 16:34 ` [Bug c++/27100] " pinskia at gcc dot gnu dot org
  2006-11-19 23:16 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-10 13:46 UTC (permalink / raw)
  To: gcc-bugs

The compiler segfaults on the following valid code snippet when invoked
with "g++ --param ggc-min-expand=0 --param ggc-min-heapsize=0":

============================
struct A
{
    friend void foo() {}
    friend void foo();
};
============================

The error message on mainline is:

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

This happens since the two command line parameters were introduced (GCC 3.3).


-- 
           Summary: ICE with multiple friend declarations
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored, GC
          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=27100


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-30 23:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-27100-4@http.gcc.gnu.org/bugzilla/>
2011-10-12 19:52 ` [Bug c++/27100] ICE with multiple friend declarations paolo.carlini at oracle dot com
2011-10-12 19:53 ` paolo.carlini at oracle dot com
2012-07-30 23:36 ` steven at gcc dot gnu.org
2012-07-30 23:48 ` steven at gcc dot gnu.org
2006-04-10 13:46 [Bug c++/27100] New: " reichelt at gcc dot gnu dot org
2006-04-10 16:34 ` [Bug c++/27100] " pinskia at gcc dot gnu dot org
2006-11-19 23:16 ` pinskia 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).