[Bug debug/36278] [4.2/4.3/4.4 Regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g"
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jul 31 08:51:00 GMT 2008
------- Comment #4 from jakub at gcc dot gnu dot org 2008-07-31 08:49 -------
Subject: Bug 36278
Author: jakub
Date: Thu Jul 31 08:48:26 2008
New Revision: 138369
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138369
Log:
PR debug/36278
* dwarf2out.c (get_context_die): New function.
(force_decl_die, force_type_die): Use it.
(dwarf2out_imported_module_or_decl): Likewise. If base_type_die
returns NULL, force generation of DW_TAG_typedef and put that into
DW_AT_import.
* g++.dg/debug/namespace2.C: New test.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/debug/namespace2.C
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/dwarf2out.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36278
More information about the Gcc-bugs
mailing list