[clang] template specialization + member function template with default arg and alignof crash (original) (raw)
template struct Problem{ template void Func(int param = alignof(FunctionTemplateParam)); };
template <> template void Problem::Func(int param) {}
int main(){ Problem p = {}; p.Func(); }
This bit of code causes a crash where it correctly compiles in msvc and gcc. With my local clang install (windows, x64) it seems to at least compile successfully replacing alignof with sizeof but I can't reproduce this behavior on godbolt.
Godbolt