https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51747

Tom Honermann <tom at honermann dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tom at honermann dot net

--- Comment #9 from Tom Honermann <tom at honermann dot net> ---
Note that call of the implicitly-defaulted copy constructor using
list-initialization is accepted for aggregate data members (verified using gcc
trunk (5.0 (c++-concepts branch), svn revision 219158))

$ cat t.cpp 
struct base {
};

struct encapsulate {
    encapsulate(const base &state)
    : b{state} // accepted.
    {}
    base b;
};

void f(base b) {
    encapsulate e{b};
}

Reply via email to