public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60566] [4.9 Regression] r208573 omits needed thunks
Date: Tue, 25 Mar 2014 20:25:00 -0000	[thread overview]
Message-ID: <bug-60566-4-Y1EkXqost5@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-60566-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60566

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |ASSIGNED
   Last reconfirmed|                            |2014-03-25
         Resolution|INVALID                     |---
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
            Summary|[4.9 Regression] r208573    |[4.9 Regression] r208573
                   |miscompiles kdelibs         |omits needed thunks
     Ever confirmed|0                           |1

--- Comment #13 from Jason Merrill <jason at gcc dot gnu.org> ---
Actually, this is an ABI breakage even without devirtualization:

wa.h:
struct A
{
  virtual void f() = 0;
  virtual ~A() {}
};

struct B: virtual A { int i; };
struct C: virtual A { int i; ~C(); };

wa.C:
#include "wa.h"
struct D: B, C { void f(); };
void D::f() {}

wa2.C:
#include "wa.h"
C::~C() { }
int main() {}

Compiling wa.C with 4.8 and wa2.C with 4.9 results in undefined symbol errors.


  parent reply	other threads:[~2014-03-25 20:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-60566-4@http.gcc.gnu.org/bugzilla/>
2014-03-19  7:53 ` [Bug c++/60566] [4.9 Regression] r208573 miscompiles kdelibs trippels at gcc dot gnu.org
2014-03-19  8:02 ` trippels at gcc dot gnu.org
2014-03-19  8:53 ` jakub at gcc dot gnu.org
2014-03-19 15:02 ` jason at gcc dot gnu.org
2014-03-19 15:16 ` trippels at gcc dot gnu.org
2014-03-19 15:24 ` jakub at gcc dot gnu.org
2014-03-19 15:32 ` trippels at gcc dot gnu.org
2014-03-19 16:29 ` jason at gcc dot gnu.org
2014-03-19 17:43 ` trippels at gcc dot gnu.org
2014-03-19 17:53 ` jakub at gcc dot gnu.org
2014-03-19 18:01 ` trippels at gcc dot gnu.org
2014-03-19 18:11 ` jakub at gcc dot gnu.org
2014-03-25 20:25 ` jason at gcc dot gnu.org [this message]
2014-03-26 16:51 ` [Bug c++/60566] [4.9 Regression] r208573 omits needed thunks jason at gcc dot gnu.org
2014-03-26 17:15 ` jason at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-60566-4-Y1EkXqost5@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).