This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52327] Virtual inheritance and template copy construction doesn't call the correct copy constructors
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Feb 2012 16:54:45 +0000
- Subject: [Bug c++/52327] Virtual inheritance and template copy construction doesn't call the correct copy constructors
- Auto-submitted: auto-generated
- References: <bug-52327-4@http.gcc.gnu.org/bugzilla/>
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.