[Bug c++/112838] Compiler is unable to show the exact error location when calling copy ctor for a non-copyable object

2023-12-05 Thread eng.ahmad.nour at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112838 --- Comment #7 from Ahmad Nour --- (In reply to Andrew Pinski from comment #3) > (In reply to Ahmad Nour from comment #2) > > > > Thanks for confirmation. > > I tried with clang-12 -Wall -Wextra main.cpp, but I didn't get that > > hint/note. Am

[Bug c++/112838] Compiler is unable to show the exact error location when calling copy ctor for a non-copyable object

2023-12-05 Thread eng.ahmad.nour at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112838 --- Comment #6 from Ahmad Nour --- (In reply to Jonathan Wakely from comment #5) > (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 s

[Bug c++/112838] Compiler is unable to show the exact error location when calling copy ctor for a non-copyable object

2023-12-03 Thread eng.ahmad.nour at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112838 --- Comment #2 from Ahmad Nour --- (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: > > :5:7: note: in instantiation of member func

[Bug c++/112838] New: Compiler is unable to show the exact error location when calling copy ctor for a non-copyable object

2023-12-03 Thread eng.ahmad.nour at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112838 Bug ID: 112838 Summary: Compiler is unable to show the exact error location when calling copy ctor for a non-copyable object Product: gcc Version: 10.5.0 Status: UNCONFI