From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 095703858C35; Sun, 3 Dec 2023 20:27:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 095703858C35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701635246; bh=lk1HYRNkAQiGZyO3mHjA7GEGRpFUiTwOugbMlkXArC8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RFygXYoBvwGywAKbChQecpPc+q0ZJnme54Bf7iYPOJSqMlTvkpTBuJs2BHnnRY3IT FEcFBRgGk+xsU1k/82R4LLK623C03mvTu43jxg32EMCcOReBdh87clgbgsWtiacps7 WpWa33OVAzyN4z85PSuBJvuOGTCJppnuJhf29Fu0= From: "pinskia 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: Sun, 03 Dec 2023 20:27:25 +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: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: cf_reconfirmed_on bug_status everconfirmed 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 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-12-03 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski --- 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 function 'std::vector>::vector' requested here 5 | class NonCopyable | ^ :14:18: note: in implicit copy constructor for 'NonCopyable' first required here 14 | NonCopyable b(a); | ^=