On 02/09/2007 12:18 PM, Larry Evans wrote: [snip]
compiler. When just using --enable-checking=yes, I was able to use gdb to find that the value of __FILE__ was corrupted:(gdb) up #1 0x0809e6eb in tsubst (t=0x4034f8a0, args=0x40351ca8, complain=3, in_decl=0x4032eea0) at ../../gcc-4.1.1/gcc/cp/pt.c:8095 (gdb) down #0 fancy_abort (file=0xdc <Address 0xdc out of bounds>, line=8218, function=0xdc <Address 0xdc out of bounds>) at ../../gcc-4.1.1/gcc/diagnostic.c:602 (gdb) p *file Cannot access memory at address 0xdc (gdb)
Apparently the above gdb <Address -0xdc out of bounds> is not useful since the program actually prints the file and function: package_c_ice.cpp: In instantiation of 'find_ice_cause<0u, 1u, 2u>': package_c_ice.cpp:40: instantiated from 'aligned_storage<99u, 0u, 1u, 2u>' package_c_ice.cpp:49: instantiated from here package_c_ice.cpp:27: internal compiler error: in tsubst, at cp/pt.c:8218 Please submit a full bug report, However, as mentioned in OP, it would be helpful to have the enable-checking flags defined.
