From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D56ED385742D; Tue, 28 Jun 2022 19:54:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D56ED385742D From: "orgads at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/29294] [REG 11.2->12.1] Internal error when stepping into a function Date: Tue, 28 Jun 2022 19:54:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: orgads at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2022 19:54:45 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29294 --- Comment #4 from Orgad Shaneh --- In field::loc_bitpos, m_loc_kind is FIELD_LOC_KIND_PHYSNAME (3). m_name is m_MsgIdx. The field is a static field in a class. Its type is a typedef of std::atomic derivative. Something like this (notice it *doesn't reproduce* with this example): #include template struct ac_atomic:public std::atomic { ac_atomic(T value =3D 0) : std::atomic(value) {} using std::atomic::operator=3D; }; typedef ac_atomic ac_atomic_uint; class Foo { public: static ac_atomic_uint m_MsgIdx; const char *Bar; }; enum class E { V1, V2 }; static void CheckField(const char* Foo::*StrField, E Enum) { } int main() { CheckField(&Foo::Bar, E::V1); // Break here and execute "step" } --=20 You are receiving this mail because: You are on the CC list for the bug.=