public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47873] New: Multiple Inheritance - Covariant Virtual Function - Segfault
@ 2011-02-24  7:13 isahib at xtra dot co.nz
  2011-02-25 10:50 ` [Bug c++/47873] " redi at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: isahib at xtra dot co.nz @ 2011-02-24  7:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47873

           Summary: Multiple Inheritance - Covariant 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 23448
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23448
gcc-4.6 -save-temps output, demos bug

The attached BugReport.ii demos a reproducible bug in a complex multiple
inheritance scheme. When the covariant virtual function BugReport::Object::This
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 ?? ()


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-05-20 10:24 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-24  7:13 [Bug c++/47873] New: Multiple Inheritance - Covariant Virtual Function - Segfault isahib at xtra dot co.nz
2011-02-25 10:50 ` [Bug c++/47873] " redi at gcc dot gnu.org
2011-02-25 11:18 ` redi at gcc dot gnu.org
2011-02-25 12:09 ` redi at gcc dot gnu.org
2011-02-25 12:35 ` [Bug c++/47873] [4.6 Regression] " redi at gcc dot gnu.org
2011-02-25 13:33 ` [Bug c++/47873] [4.6 Regression] virtual " redi at gcc dot gnu.org
2011-02-26 19:59 ` redi at gcc dot gnu.org
2011-02-27 19:31 ` jason at gcc dot gnu.org
2011-02-28  6:53 ` isahib at xtra dot co.nz
2011-02-28  7:48 ` isahib at xtra dot co.nz
2011-02-28  9:45 ` redi at gcc dot gnu.org
2011-02-28 23:25 ` jason at gcc dot gnu.org
2011-03-02 19:50 ` jason at gcc dot gnu.org
2011-05-20  9:50 ` isahib at xtra dot co.nz
2011-05-20 10:27 ` redi at gcc dot gnu.org

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).