public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39060]  New: [4.4 regression] ICE with lots of invalid member functions
@ 2009-02-01 11:24 reichelt at gcc dot gnu dot org
  2009-02-01 11:24 ` [Bug c++/39060] " reichelt at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-02-01 11:24 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase triggers an ICE on the trunk:

============================================================
struct A
{
  A(void* i=);
  A(void* i=);
  A(void* i=);

  void operator+ (void* i=);

  virtual void foo1(=);
  void foo2(=);
  void foo3(=);
  void foo4(=);
  void foo5(=);
};

A::A (void* i=) {}
============================================================

bug.cc:4: error: 'A::A(void*)' cannot be overloaded
bug.cc:3: error: with 'A::A(void*)'
[...lots of errors removed...]
bug.cc:16: error: default argument given for parameter 1 of 'A::A(void*)'
bug.cc:3: error: after previous specification in 'A::A(void*)'
bug.cc:16: internal compiler error: canonical types differ for identical types
void (A::)(void*) and void (A::)(void*)
Please submit a full bug report, [etc.]

The testcase is a little fragile, it looks like some memory access is not OK.


-- 
           Summary: [4.4 regression] ICE with lots of invalid member
                    functions
           Product: gcc
           Version: 4.4.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=39060


^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <bug-39060-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2022-10-31 22:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-01 11:24 [Bug c++/39060] New: [4.4 regression] ICE with lots of invalid member functions reichelt at gcc dot gnu dot org
2009-02-01 11:24 ` [Bug c++/39060] " reichelt at gcc dot gnu dot org
2009-02-01 13:17 ` rguenth at gcc dot gnu dot org
2009-02-07 11:36 ` paolo dot carlini at oracle dot com
2009-02-09 22:58 ` reichelt at gcc dot gnu dot org
2009-02-10  0:09 ` paolo dot carlini at oracle dot com
2009-02-12 23:22 ` bangerth at gmail dot com
2009-02-14 23:38 ` hjl dot tools at gmail dot com
2009-02-23  2:36 ` hjl dot tools at gmail dot com
2009-03-07 19:44 ` hjl dot tools at gmail dot com
2009-03-08 17:29 ` hjl at gcc dot gnu dot org
2009-03-08 17:34 ` hjl dot tools at gmail dot com
     [not found] <bug-39060-4@http.gcc.gnu.org/bugzilla/>
2022-10-31 22:05 ` pinskia at gcc dot gnu.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).