https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101344
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-07-12 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- N.B. the code requires -std=gnu++20 to compile. (In reply to Fedor Chelnokov from comment #0) > A a{{1, 2}}; // ok in gcc > B b{{1, 2}}; // error in gcc (ok in other compilers, e.g. msvc) FWIW MSVC seems to be the only compiler that accepts it. Clang and Intel do not accept either line, due to incomplete C++20 support.