[Bug c++/95369] braced-init-list with designated initializers as template-argument rejected
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 27 18:40:08 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95369
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This is not really about designated initializers; we wrongly reject this one
too:
struct S {
unsigned a;
unsigned b;
};
template<S s> struct X { };
void f()
{
X<{ 1u, 2u }> x;
}
More information about the Gcc-bugs
mailing list