http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53477
--- Comment #2 from Pawel Sikora <pluto at agmk dot net> 2012-07-16 19:03:27 UTC --- (In reply to comment #1) > (Fixed the component) > > I can't reproduce this. > I can print wordMapBitset before it is initialized but > I get a different error: > > (gdb) p wordBitsetMap > $4 = std::map with 140737488349518 elementsCannot access memory at address > 0x68732f6c61636f7c in line 15 the wordBitsetMap reference is initialized. (gdb) p wordBitsetMap $3 = Python Exception <type 'exceptions.IndexError'> list index out of range: std::map with 1 elements ^^^^^^^^^^^^^^^ this is true. > What version of gdb are you using? gdb from git 7.4/master branch. > Can you do it with stack-printing enabled? > ("set python print-stack on" in recent versions, somewhere under > "maint" in older ones.) > This might help. (gdb) set python print-stack full (gdb) p wordBitsetMap $6 = std::map with 1 elementsTraceback (most recent call last): File "/opt/gcc47/share/gcc-4.7.2/python/libstdcxx/v6/printers.py", line 427, in children rep_type = find_type(self.val.type, '_Rep_type') File "/opt/gcc47/share/gcc-4.7.2/python/libstdcxx/v6/printers.py", line 43, in find_type field = typ.fields()[0] IndexError: list index out of range