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++/52327] Virtual inheritance and template copy construction doesn't call the correct copy constructors


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-21 16:54:45 UTC ---
Virtual bases are constructed by the most-derived class, which is
Initializer<Top> in your "templated copy" case, and the ctor-initializer-list
for Initializer<Top> doesn't construct the Base and Derived classes, so they
are default constructed.

i.e. G++ is correct.


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