This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51747] [DR 1467] [C++11] cannot call defaulted copy constructor using list-initialization
- From: "ville.voutilainen at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 25 Jan 2015 18:26:16 +0000
- Subject: [Bug c++/51747] [DR 1467] [C++11] cannot call defaulted copy constructor using list-initialization
- Auto-submitted: auto-generated
- References: <bug-51747-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51747
--- Comment #11 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Also,
struct base {
int x;
};
struct derived : base {
derived(const base &state)
: base{state}
{}
};
is diagnosed with
base-aggr-init2.cpp: In constructor âderived::derived(const base&)â:
base-aggr-init2.cpp:7:17: error: cannot convert âconst baseâ to âintâ in
initialization
: base{state}
^
so it doesn't look like Core 1467 is handled in base class initializers
at all.