This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13463] New: inlined constructor -> invalid vtable issue [3.3.1-cygwin]
- From: "gcc at axel-naumann dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Dec 2003 11:23:55 -0000
- Subject: [Bug c++/13463] New: inlined constructor -> invalid vtable issue [3.3.1-cygwin]
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Inlined constructor included by multiple translation units results in invalid
vtable. Having a header with an inlined constructor, and including this header
in >=2 sources, which are linked into one shared library each, will result in an
invalid object's vtable [crash when calling base class's methods]. In the
attached example, gcc 3.3.1 will only create valid code with INLINE_CTOR
undefined in vtbllib.hpp. Not an issue with 3.2. Assumption: gcc generates one
vtable per translation unit for inlined c'tors.
[I'll attach output and files to help reproduce this.]
--
Summary: inlined constructor -> invalid vtable issue [3.3.1-
cygwin]
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc at axel-naumann dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-cygwin
GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13463