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] inlined constructor -> invalid vtable issue [3.3.1-cygwin]


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-22 16:05 -------
You are violating the one definition rule.
#ifdef INLINE_CTOR
VL::VL(): _mem(1234) {
   std::cout <<"VL()"<<std::endl;
};
#endif

Does not declare an inline constructor.
#ifdef INLINE_CTOR
inline VL::VL(): _mem(1234) {
   std::cout <<"VL()"<<std::endl;
};
#endif
Does.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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]