The following snippet extracted from this post compiles with some recent gcc and msvc, but not with the latest clang.
Will it end compiling with clang, or is it some non-standard stuff that some compilers accept and other don't?
Thanks!
struct Foo
{
int a, b;
};
template<Foo>
struct Bar
{};
Bar<{.a=1, .b=2}> bar;
At this time with clang one has to do this to get it compiled:
Bar<Foo{.a=1, .b=2}> bar;