This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13463] New: inlined constructor -> invalid vtable issue [3.3.1-cygwin]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]