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); }