This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13654] New: multiple translation units, inlined constructor: invalid vtable [cygwin 3.3.1]
- 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: 12 Jan 2004 11:40:31 -0000
- Subject: [Bug c++/13654] New: multiple translation units, inlined constructor: invalid vtable [cygwin 3.3.1]
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
A header declaring a class with an inlined constructor is included in the
sources used to build a shared lib, and in those used to build a binary linked
against the lib. This will result in a core dump when the binary calls a class's
method defined in the library. It only happens with a call on a heap object, not
on a stack object.
Only happens on cygwin with vers. 3.3.1, not with vers. 3.2, not on linux.
Assumption: in the case of inlined constructors, a separate vtable is created
for each translation unit.
[example sources follow]
[this bug report replaces the incorrect & invalidated report #13463]
--
Summary: multiple translation units, inlined constructor: invalid
vtable [cygwin 3.3.1]
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=13654