This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/22242] recursive display of variable information
- From: "jeremip11 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 31 Mar 2018 12:19:18 +0000
- Subject: [Bug c++/22242] recursive display of variable information
- Auto-submitted: auto-generated
- References: <bug-22242-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22242
--- Comment #4 from Jeremi <jeremip11 at gmail dot com> ---
Comment on attachment 10502
--> https://sourceware.org/bugzilla/attachment.cgi?id=10502
Code for demonstrating the "infinite print"
>/* compile with g++ -O0 -g3 recursivegdb.cpp */
>
>class CInner {
>public:
> constexpr CInner(unsigned range = 0) : m_Range(range){};
>
> static const CInner sm_NullGeometry;
>
>private:
> unsigned m_Range;
>};
>const CInner CInner::sm_NullGeometry{};
>
>struct CKiller {
> CInner m_PrimaryErase;
> static const CKiller sm_NullConfig;
>};
>
>const CKiller CKiller::sm_NullConfig = {};
>
>int main(int argc, char **argv) {
> CKiller v;
>}
--
You are receiving this mail because:
You are on the CC list for the bug.