https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112838
--- Comment #2 from Ahmad Nour <eng.ahmad.nour at gmail dot com> --- (In reply to Andrew Pinski from comment #1) > Confirmed, I thought I had saw an issue filed that is very smilar to this. > > > Note clang provides the context: > > <source>:5:7: note: in instantiation of member function > 'std::vector<std::unique_ptr<int>>::vector' requested here > 5 | class NonCopyable > | ^ > <source>:14:18: note: in implicit copy constructor for 'NonCopyable' first > required here > 14 | NonCopyable b(a); > | ^ Thanks for confirmation. I tried with clang-12 -Wall -Wextra main.cpp, but I didn't get that hint/note. Am I missing something?