[Bug c++/92812] Implement P1975R0: Fixing the wording of parenthesized aggregate-initialization

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 27 16:52:35 GMT 2020


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

--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Another test to consider:

struct S1 {
    int i;
    int j;
};

struct S2 {
    S1 s[4];
};

struct S3 {
    S2 s2;
};

void f()
{
    auto s3 = static_cast<S3>(1);
}


More information about the Gcc-bugs mailing list