msvc compiles the following code(with /permissive- compiler switch), clang and gcc do not:
template<auto val>
struct S{
static constexpr auto val = val;
};
int main() {
return S<4>::val;
}
I presume that this is just a msvc bug, but I am curious if maybe standard is ambiguous here.