Open
Description
I stumbled upon this case when I was trying to clean up the uses of getTemplateInstantiationArgs()
, which is in preparation for my CWG 2369 implementation.
https://clang.godbolt.org/z/MnYbGKoqP
template <typename T> struct S {
template <typename... U>
constexpr int UseAlignOf(int param = 1) noexcept(sizeof...(U) == 4);
};
template <>
template <typename... U>
constexpr int S<int>::UseAlignOf(int param) noexcept(sizeof...(U) == 4) {
return param;
}
static_assert(S<int>().UseAlignOf<char>(), "");