public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28740]  New: [4.0/4.1/4.2 regression] ICE with invalid inheritance
@ 2006-08-15 18:56 reichelt at gcc dot gnu dot org
  2006-08-15 18:57 ` [Bug c++/28740] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-15 18:56 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase triggers an ICE since GCC 4.0.0:

=========================================
struct A { virtual ~A(); };

struct B : A A {};

A foo(const B &b)
{
  return b;
}
=========================================

bug.cc:3: error: expected `{' before 'A'
bug.cc:3: error: function definition does not declare parameters
bug.cc: In function 'A foo(const B&)':
bug.cc:7: internal compiler error: in build_simple_base_path, at cp/class.c:475
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with invalid inheritance
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: minor
          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=28740


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

end of thread, other threads:[~2006-12-13 14:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-15 18:56 [Bug c++/28740] New: [4.0/4.1/4.2 regression] ICE with invalid inheritance reichelt at gcc dot gnu dot org
2006-08-15 18:57 ` [Bug c++/28740] " reichelt at gcc dot gnu dot org
2006-08-18  4:43 ` pinskia at gcc dot gnu dot org
2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
2006-12-02 18:56 ` [Bug c++/28740] [4.0 " reichelt at gcc dot gnu dot org
2006-12-03 13:12 ` lmillward at gcc dot gnu dot org
2006-12-03 13:13 ` lmillward at gcc dot gnu dot org
2006-12-13 13:26 ` lmillward at gcc dot gnu dot org
2006-12-13 13:59 ` lmillward at gcc dot gnu dot org
2006-12-13 14:29 ` lmillward 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).