From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 Description of problem: gdb can't grok vector<complex<double>> compiled by g++3 (gdb) p roots[0] $8 = (Complex &) @0x80504f8: {_M_value = Invalid C/C++ type code 20 in symbol table. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.compile with g++3 -g 2. 3. Additional info:
Example file?
Also, does it work if you have gcc output dwarf2 debug info?
#include <complex> int main () { typedef std::complex<double> Complex; Complex x (1.,0.); } g++3 -o Test Test.cc gdb Test b main runp x $1 = {_M_value = Invalid C/C++ type code 20 in symbol table
No difference if I do -ggdb.
"-gdwarf-2" doesn't help, and it's still a problem on the latest CVS snapshots of gdb.
Still a problem with gdb 5.1
Fixed in gdb-5.1.90CVS-2 (it prints out a warning about not handling 16byte floating point numbers, but at least tries to print the numbers...)