This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51331] [4.6/4.7 Regression] bad code generated when explicitly calling auto-generated constructor of virtual base
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Dec 2011 22:59:32 +0000
- Subject: [Bug c++/51331] [4.6/4.7 Regression] bad code generated when explicitly calling auto-generated constructor of virtual base
- Auto-submitted: auto-generated
- References: <bug-51331-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51331
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-16 22:59:32 UTC ---
Author: jason
Date: Fri Dec 16 22:59:27 2011
New Revision: 182418
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182418
Log:
PR c++/51331
* class.c (convert_to_base_statically): Just call
build_simple_base_path.
(build_simple_base_path): Check field offset.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/init/value10.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/class.c
branches/gcc-4_6-branch/gcc/cp/init.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog