This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55120] Inaccessible virtual base constructor does not prevent generation of default constructor
- From: "ndkrempel at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Oct 2012 16:08:49 +0000
- Subject: [Bug c++/55120] Inaccessible virtual base constructor does not prevent generation of default constructor
- Auto-submitted: auto-generated
- References: <bug-55120-4@http.gcc.gnu.org/bugzilla/>
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.