From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 714773858C41; Tue, 5 Dec 2023 08:57:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 714773858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701766647; bh=BeI3sVfZH+olEvNCaRqiHkQvcTs4zj9AtX2BC7yPFIY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UDNN3x6pfPvbfugFe2MZTRegpNdiKR6nCn9RuMUvQS0OoMT0N5ZQrAkPvYMaNr1JX HAQ9VpK49U95Kin2JmatSrg0TcU8nD/nOyN3PmPIIfjnOxn/ZPXQNA9jefY8ycIja/ uYZyjQ2yBBRtv4tV6CIzqxVAy2s5oafiVolS5xgU= From: "eng.ahmad.nour at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112838] Compiler is unable to show the exact error location when calling copy ctor for a non-copyable object Date: Tue, 05 Dec 2023 08:57:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.5.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: eng.ahmad.nour at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112838 --- 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? >=20 > You should get that note with clang-12 (and newer versions) > https://godbolt.org/z/KM65MKrPa Thanks, but I also don't see it in godbolt output. Note: I'm referring to this exact note: > :14:18: note: in implicit copy constructor for 'NonCopyable' firs= t required here > 14 | NonCopyable b(a); I can't find anything related to line #13: NonCopyable b(a); which is the r= oot cause of the issue=