When I try to compile with -ggdb2, it fails. When I try with -ggdb1, it doesn't.
version of GCC: 4.1.0 20050309 (experimental) system type: SunOS 5.8 GCC configure options: ./configure --prefix=/usr/local/toolchain-4.0.0 --with-gnu-as --with-gnu-l d --enable-languages=c,c++ command line: g++ -v -save-temps -ggdb2 -c -o clockevent.41.o clockevent.41.ii compiler output: Using built-in specs. Target: sparc-sun-solaris2.8 Configured with: ../gcc/configure --prefix=/usr/local/toolchain-4.0.0 --with- gnu-as --with-gnu-ld --enable-languages=c,c++ Thread model: posix gcc version 4.1.0 20050309 (experimental) /space/home/usr.local/toolchain-4.0.0/bin/../libexec/gcc/sparc-sun- solaris2.8/4.1.0/cc1plus -fpreprocessed clockevent.41.ii -quiet -dumpbase clockevent.41.ii -mcpu=v7 -auxbase-strip clockevent.41.o -ggdb2 -version -o clockevent.41.s GNU C++ version 4.1.0 20050309 (experimental) (sparc-sun-solaris2.8) compiled by GNU C version 4.0.0 20050221 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 clockevent.41.ii: In member function 'TClockEventBlock* TClock::GetClockEventBlock()': clockevent.41.ii:72515: warning: taking address of temporary clockevent.41.ii: In member function 'TClockEventBlock* TClock::GetUnbufferedClockEventBlock()': clockevent.41.ii:72520: warning: taking address of temporary clockevent.41.ii: At global scope: clockevent.41.ii:72546: internal compiler error: tree check: expected integer_cst, have minus_expr in tree_add_const_value_attribute, at dwarf2out.c:10173 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. -- Summary: internal error when compiling with -ggdb2 and no error with -ggdb1 Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ivanr at syncad dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: sparc-sun-solaris2.8 GCC host triplet: sparc-sun-solaris2.8 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20505