[Bug c++/112838] Compiler is unable to show the exact error location when calling copy ctor for a non-copyable object
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 4 11:30:20 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112838
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Ahmad Nour from comment #2)
> I tried with clang-12 -Wall -Wextra main.cpp, but I didn't get that
> hint/note. Am I missing something?
You should get that note with clang-12 (and newer versions)
https://godbolt.org/z/KM65MKrPa
More information about the Gcc-bugs
mailing list