This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16959] gdb hangs in infinite recursion


https://sourceware.org/bugzilla/show_bug.cgi?id=16959

--- Comment #1 from kirillkh at gmail dot com ---
Test case in case the paste expires:

    struct Size
    {
        float width;
        float height;
        static const Size ZERO;
    };

    struct  Rect
    {
        float x, y;
        Size  size;
        static const Rect ZERO;
    };

    const Size Size::ZERO = { 0, 0 };
    const Rect Rect::ZERO = { 0, 0, {0, 0} };

    int main()
    {
        Rect x;
        return x.y;
    }

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]