From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2095E385828B; Mon, 4 Dec 2023 11:30:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2095E385828B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701689421; bh=MgyDKRnY1sl0nlQdErjcw5DGX2nY+i6nBMsvbwz2QI0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FBMdblgtLFsOhKrQ98WYDP37gr+KbBiiClv6XYVmpnvkOFYhUptv/cmBtV0pA0Sag efsTjvAE7UKRYrT6MRiN5Hm9DclbY3auHWy7IgjPZWesOcW4MgckC8qFBd9I69U8bL tzcDQ8ae2XNSxYf2AM13Z9GEDFfPzOJJpoI/IKLc= From: "redi at gcc dot gnu.org" 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: Mon, 04 Dec 2023 11:30:20 +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: redi at gcc dot gnu.org 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 #5 from Jonathan Wakely --- (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=