public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/60419] [4.8/4.9 Regression] ICE Segmentation fault Date: Thu, 20 Mar 2014 10:15:00 -0000 [thread overview] Message-ID: <bug-60419-4-tJkdwGBlmY@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-60419-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60419 --- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I have: --- gcc/testsuite/g++.dg/ipa/pr60419.C 2014-03-19 15:57:57.735114622 +0100 +++ gcc/testsuite/g++.dg/ipa/pr60419.C 2014-03-20 11:13:58.933256068 +0100 @@ -0,0 +1,80 @@ +// PR middle-end/60419 +// { dg-do compile } +// { dg-options "-O2" } + +struct C +{ +}; + +struct I : C +{ + I (); +}; + +struct J +{ + void foo (); + J (); + virtual void foo (int &, int); +}; + +template <class> +struct D +{ + virtual void foo (I &) const; + void bar () + { + I p; + foo (p); + } +}; + +struct K : J, public D<int> +{ +}; + +struct F +{ + K *operator->(); +}; + +struct N : public K +{ + void foo (int &, int); + I n; + void foo (I &) const {} +}; + +struct L : J +{ + F l; +}; + +struct M : F +{ + L *operator->(); +}; + +struct G +{ + G (); +}; + +M h; + +G::G () +try +{ + N f; + f.bar (); + throw; +} +catch (int) +{ +} + +void +baz () +{ + h->l->bar (); +}
next prev parent reply other threads:[~2014-03-20 10:15 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-03-04 23:04 [Bug tree-optimization/60419] New: [4.8 / 4.9 " doko at gcc dot gnu.org 2014-03-05 8:34 ` [Bug middle-end/60419] [4.8/4.9 " doko at gcc dot gnu.org 2014-03-05 9:06 ` y.gribov at samsung dot com 2014-03-05 9:29 ` rguenth at gcc dot gnu.org 2014-03-09 21:41 ` jakub at gcc dot gnu.org 2014-03-10 9:02 ` jakub at gcc dot gnu.org 2014-03-12 16:24 ` jakub at gcc dot gnu.org 2014-03-13 9:00 ` jakub at gcc dot gnu.org 2014-03-18 10:59 ` jakub at gcc dot gnu.org 2014-03-18 17:20 ` trippels at gcc dot gnu.org 2014-03-18 17:37 ` trippels at gcc dot gnu.org 2014-03-19 10:44 ` jamborm at gcc dot gnu.org 2014-03-20 9:22 ` jakub at gcc dot gnu.org 2014-03-20 9:37 ` trippels at gcc dot gnu.org 2014-03-20 9:38 ` trippels at gcc dot gnu.org 2014-03-20 9:55 ` trippels at gcc dot gnu.org 2014-03-20 10:15 ` jakub at gcc dot gnu.org [this message] 2014-03-20 16:28 ` jamborm at gcc dot gnu.org 2014-03-21 12:48 ` jamborm at gcc dot gnu.org 2014-03-21 14:27 ` [Bug middle-end/60419] [4.8 " jakub at gcc dot gnu.org 2014-03-26 13:48 ` jamborm at gcc dot gnu.org 2014-03-26 13:50 ` jamborm 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-60419-4-tJkdwGBlmY@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).