public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "isahib at xtra dot co.nz" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/47874] New: Multiple Inheritance - Virtual Function - Segfault Date: Thu, 24 Feb 2011 07:14:00 -0000 [thread overview] Message-ID: <bug-47874-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47874 Summary: Multiple Inheritance - Virtual Function - Segfault Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: isahib@xtra.co.nz Created attachment 23449 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23449 gcc-4.6 -save-temps output, demos bug The attached BugReport.ii demos a reproducible bug in a complex multiple inheritance scheme. When the virtual function BugReport::Tier1::Object::Print is overridden and called in a derived class then the program segfaults. ggc-4.6 -v ========== Using built-in specs. COLLECT_GCC=gcc-4.6 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.0/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.6-20110216-1' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.6.0 20110216 (experimental) [trunk revision 170225] (Debian 4.6-20110216-1) gcc-4.6 build command line ========================== -std=c++0x -Wall -Wextra -pedantic -g -save-temps Shell output ============ Segmentation fault Gdb output ========== Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? ()
next reply other threads:[~2011-02-24 7:05 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-02-24 7:14 isahib at xtra dot co.nz [this message] 2011-02-24 9:54 ` [Bug c++/47874] " redi at gcc dot gnu.org 2011-02-25 8:52 ` isahib at xtra dot co.nz 2011-02-26 20:50 ` redi at gcc dot gnu.org 2011-02-28 6:47 ` isahib at xtra dot co.nz 2011-03-01 1:19 ` redi at gcc dot gnu.org 2011-03-01 1:30 ` redi at gcc dot gnu.org 2011-03-12 2:18 ` isahib at xtra dot co.nz
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-47874-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).