c++/1962: Nested static causing infinite recursion in print.

vcato@bellsouth.net vcato@bellsouth.net
Sat Jul 2 17:18:00 GMT 2005


>Number:         1962
>Category:       c++
>Synopsis:       Nested static causing infinite recursion in print.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 02 17:18:01 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     vcato@bellsouth.net
>Release:        GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
>Organization:
>Environment:

>Description:
Linux 2.6.11-1.1369_FC4 #1
athlon
>How-To-Repeat:
struct B;

struct A {
  static B b;
};

struct B {
  A a;
};

B A::b;
B b;

int main(int,char **)
{
// set a breakpoint here, run, then print b
// Results in infinite recursion
}

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gdb-prs mailing list