re PR debug/36278 (ICE with typedef void in namespace and using the defined type...
authorJakub Jelinek <jakub@redhat.com>
Thu, 31 Jul 2008 08:01:25 +0000 (10:01 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 31 Jul 2008 08:01:25 +0000 (10:01 +0200)
commit1e1d38871b1b64c4480e08179ebce9efc2161a01
tree5d7741a5fa35893c436c49fabebc382a2f344042
parentb3e200e1354de45b09c18ee4260d6b7e8d2db51e
re PR debug/36278 (ICE with typedef void in namespace and using the defined type in another when compiling with "-g")

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.

From-SVN: r138361
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/namespace2.C [new file with mode: 0644]