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.

Reply via email to