http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47861
Summary: static variables inside member functions
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: trivial
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
I know it has been probably discussed several times and probably eons ago.
The language semanthics may induct to assume static variables defined in a
member function are going to be modified only for a specifc class instance -
obviously this is not happening.
Not a c++ bug, a c++ trap.