public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "Troy dot Runkel at mathworks dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/42394] New: pure virtual method called when compiling with "-fno-strict-aliasing -O" Date: Wed, 16 Dec 2009 19:51:00 -0000 [thread overview] Message-ID: <bug-42394-18570@http.gcc.gnu.org/bugzilla/> (raw) The attached test case should produce no output when executed. However, when compiled with the following command-line arguments... g++ pure_virtual_function_test.cpp -fno-strict-aliasing -O -o fail_test the test case produces the following output... pure virtual method called terminate called without an active exception Aborted The assembly code for MakeNvSsInportsNvIfNeeded shows that the call to DescSysOutportSourceHandler::handleEachDescSys is passed the vtable for DescSysOutportSourceHandler. However the call to DescSysSelfLoopHandler::handleEachDescSys is passed the vtable for DescSysIteratorNc instead of the vtable for DescSysSelfLoopHandler. The output of "g++ -v" follows... Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../../../sources/gcc-4.3/configure --prefix=/hub/3rdparty/internal/142814/glnxa64/gcc-4.3.4 --with-gmp=/sandbox/rjarrett/3p-gcc/3p/derived/glnxa64/gcc-4.3/gmp --with-mpfr=/sandbox/rjarrett/3p-gcc/3p/derived/glnxa64/gcc-4.3/mpfr --enable-languages=c,c++,fortran --with-as=/hub/3rdparty/internal/142814/glnxa64/gcc-4.3.4/bin/as --with-ld=/hub/3rdparty/internal/142814/glnxa64/gcc-4.3.4/bin/ld --disable-multilib Thread model: posix gcc version 4.3.4 (GCC) -- Summary: pure virtual method called when compiling with "-fno- strict-aliasing -O" Product: gcc Version: 4.3.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Troy dot Runkel at mathworks dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42394
next reply other threads:[~2009-12-16 19:51 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-12-16 19:51 Troy dot Runkel at mathworks dot com [this message] 2009-12-16 19:52 ` [Bug c++/42394] " Troy dot Runkel at mathworks dot com 2009-12-16 19:53 ` Troy dot Runkel at mathworks dot com 2009-12-16 19:54 ` Troy dot Runkel at mathworks dot com 2009-12-16 19:59 ` Troy dot Runkel at mathworks dot com 2009-12-16 20:03 ` paolo dot carlini at oracle dot com 2009-12-16 20:16 ` [Bug middle-end/42394] [4.3/4.4 Regression] pure virtual method called when compiling with -O rguenth at gcc dot gnu dot org 2009-12-16 20:19 ` rguenth at gcc dot gnu dot 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-42394-18570@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).