From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE6773858D1E; Sun, 6 Mar 2022 13:15:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE6773858D1E From: "jengelh at inai dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/104806] New: Weird error message: did you mean "__dt " Date: Sun, 06 Mar 2022 13:15:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jengelh at inai dot de X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2022 13:15:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104806 Bug ID: 104806 Summary: Weird error message: did you mean "__dt " Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jengelh at inai dot de Target Milestone: --- Input =3D=3D=3D=3D=3D struct S{}; int main() { S s; s.__d; } Observed =3D=3D=3D=3D=3D=3D=3D=3D g++ -c x.cpp gcc version 11.2.1 20220103 [revision d4a1d3c4b377f1d4acb34fe1b55b5088a3f29= 3f6] (SUSE Linux)=20 x.cpp: In function =E2=80=98int main()=E2=80=99: x.cpp:2:21: error: =E2=80=98struct S=E2=80=99 has no member named =E2=80=98= __d=E2=80=99; did you mean =E2=80=98__dt =E2=80=99? 2 | int main() { S s; s.__d; } | ^~~ | __dt=20 Expected =3D=3D=3D=3D=3D=3D=3D=3D x.cpp: did you mean "__dt"? That is, without the extra space. In addition, where does __dt come from? I have not even included anything. This in the source code git repo looks like the culprit. gcc/cp/decl.cc: {"__dt ", &dtor_identifier, cik_dtor},=