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++/55120] Inaccessible virtual base constructor does not prevent generation of default constructor


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

--- Comment #1 from Nick Krempel <ndkrempel at gmail dot com> 2012-10-29 16:08:49 UTC ---
Not so clear this is a bug, as the default constructor for D could be generated
in the following form:

struct D : B {
  D() : B(), ::V() {}
}

Note the reference to V via the global scope, which is essential for it to
compile.


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