public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dimhen at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61687] New: [4.10 regression] -O PASS, -O2 report error Date: Thu, 03 Jul 2014 13:08:00 -0000 [thread overview] Message-ID: <bug-61687-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61687 Bug ID: 61687 Summary: [4.10 regression] -O PASS, -O2 report error Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dimhen at gmail dot com r212098 PASS r212191 FAIL r212258 FAIL $ ~/bin/gcc_212191_wo_fold/bin/g++ -c -fpreprocessed -O n.ii $ ~/bin/gcc_212191_wo_fold/bin/g++ -c -fpreprocessed -O2 n.ii n.ii: In destructor 'virtual G::~G()': n.ii:11:11: error: 'D::~D()' is private virtual ~D(); ^ n.ii:16:7: error: within this context class G : D { ^ n.ii: At global scope: n.ii:18:2: note: synthesized method 'virtual G::~G()' first required here }; ^ n.ii: In instantiation of 'B< <template-parameter-1-1> >::~B() [with <template-parameter-1-1> = int]': n.ii:13:7: required from here n.ii:6:36: error: invalid use of incomplete type 'class A' ~B() { _M_impl._M_end_of_storage - 0; } ^ n.ii:1:7: note: forward declaration of 'class A' class A; ^ $ cat n.ii class A; template <typename> struct B { struct C { A *_M_end_of_storage; }; ~B() { _M_impl._M_end_of_storage - 0; } C _M_impl; }; class D { virtual ~D(); }; class F { B<int> m_value; }; class G : D { F NPCadesImpl; }; $ ~/bin/gcc_212191_wo_fold/bin/g++ -v Using built-in specs. COLLECT_GCC=/home/dimhen/bin/gcc_212191_wo_fold/bin/g++ COLLECT_LTO_WRAPPER=/home/dimhen/bin/gcc_212191_wo_fold/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.10.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /home/dimhen/src/gcc_current/configure --prefix=/usr/local/gcc_current/ --enable-checking=yes,df,rtl,tree --enable-languages=c,c++,lto --enable-plugin --enable-version-specific-runtime-libs --enable-static Thread model: posix gcc version 4.10.0 20140701 (experimental) [trunk revision 212191] (GCC)
next reply other threads:[~2014-07-03 13:08 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-07-03 13:08 dimhen at gmail dot com [this message] 2014-07-03 14:43 ` [Bug c++/61687] " jakub at gcc dot gnu.org 2014-07-03 14:53 ` trippels at gcc dot gnu.org 2014-07-07 11:12 ` rguenth at gcc dot gnu.org 2014-07-10 19:30 ` jason at gcc dot gnu.org 2014-07-11 5:13 ` jason at gcc dot gnu.org 2014-07-30 17:28 ` 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-61687-4@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).