https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107278
--- Comment #2 from Jonathan <ky4ct at arrl dot net> --- (In reply to Andrew Pinski from comment #1) > Iirc there was a defect report against the c++ standard here and you should > just foo instead of foo<T> kd5eax@KY4CT CLANG64 ~ $ cat test.cpp template<typename T> class foo { foo<T>(foo<T> const&) = delete; foo<T>(foo<T> const&&) = default; }; int main() { return 0; }; kd5eax@KY4CT CLANG64 ~ $ clang++ -std=c++20 test.cpp kd5eax@KY4CT CLANG64 ~ $