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++/51331] [4.6/4.7 Regression] bad code generated when explicitly calling auto-generated constructor of virtual base


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


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