Given this program, compiled with 'g++ -ggdb3 program.C' and then run under gdb. when I get to f(int)::s::g(int) then I can't examine any local variables nor any arguments. When I rerun the compiler using 'g++ -ggdb3 -S program.C' and examine the generated assembler there are no references to neither argument2 nor variable2, but the string argument1 do show up.
-- Summary: Debug information for static local class members are not emitted Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc at magfr dot user dot lysator dot liu dot se GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27017