public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/58585] [4.9 Regression] ICE in ipa with virtual inheritance Date: Fri, 10 Jan 2014 09:40:00 -0000 [thread overview] Message-ID: <bug-58585-4-Oi0Ri6Ci6n@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-58585-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58585 --- Comment #19 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Fix for PR58252 and PR59226 fixed first two problems contributing to the ICE on the testcase. The last remaining problem is that our type inheritance graph is incomplete, it misses the class C. The reason is that I build the graph by looking for virtual methods and adding their types. C has no virtual methods per se, but it does use thunk of A's constructor. This thunk is considered, but it does not have type of C that I think is a frontend bug. The patch I attached fixes it by considering also non-virtual methods to build the graph. This matches the constructor of C and gets testcase working, but I think it is symptomatic fix and may break if ctor is optimized out with LTO. I am looking into a safer way to discover existence of C.
next prev parent reply other threads:[~2014-01-10 9:40 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-09-30 21:50 [Bug middle-end/58585] New: " reichelt at gcc dot gnu.org 2013-10-02 15:48 ` [Bug middle-end/58585] " hubicka at gcc dot gnu.org 2013-10-03 15:52 ` hubicka at gcc dot gnu.org 2013-10-03 16:11 ` hubicka at gcc dot gnu.org 2013-10-03 21:46 ` hubicka at ucw dot cz 2013-10-04 1:50 ` jason at gcc dot gnu.org 2013-10-04 10:33 ` hubicka at ucw dot cz 2013-11-05 14:46 ` rguenth at gcc dot gnu.org 2013-12-06 11:29 ` octoploid at yandex dot com 2013-12-15 20:50 ` hubicka at gcc dot gnu.org 2014-01-07 9:09 ` hubicka at gcc dot gnu.org 2014-01-07 9:34 ` hubicka at gcc dot gnu.org 2014-01-07 10:50 ` trippels at gcc dot gnu.org 2014-01-07 11:07 ` trippels at gcc dot gnu.org 2014-01-07 13:07 ` hubicka at ucw dot cz 2014-01-07 17:31 ` hubicka at gcc dot gnu.org 2014-01-08 17:41 ` hubicka at gcc dot gnu.org 2014-01-08 17:53 ` trippels at gcc dot gnu.org 2014-01-10 9:40 ` hubicka at gcc dot gnu.org [this message] 2014-01-10 13:21 ` hubicka at gcc dot gnu.org 2014-01-10 21:35 ` hubicka at gcc dot gnu.org 2014-01-11 11:01 ` hubicka 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-58585-4-Oi0Ri6Ci6n@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: linkBe 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).