diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-04-10 15:18:19 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2006-04-10 15:18:19 +0200 |
commit | ef85ac9aad0870225173b8c066a86ebaf866fd22 (patch) | |
tree | 4c6276b9bf53bb3f8dda5a003a4803f00c5f1109 /gcc/dwarf2out.c | |
parent | 55fc9243b7fc0a6c84fb7ff6bf896614bbde91ce (diff) | |
download | gcc-ef85ac9aad0870225173b8c066a86ebaf866fd22.zip gcc-ef85ac9aad0870225173b8c066a86ebaf866fd22.tar.gz gcc-ef85ac9aad0870225173b8c066a86ebaf866fd22.tar.bz2 |
re PR debug/27057 (ICE with -feliminate-dwarf2-dups and using namespace)
PR debug/27057
* dwarf2out.c (is_symbol_die): Return true also for namespaces.
* g++.dg/debug/dwarf2-2.C: New test.
From-SVN: r112820
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index e400eb3..bfcc68f 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -6263,7 +6263,8 @@ is_symbol_die (dw_die_ref c) { return (is_type_die (c) || (get_AT (c, DW_AT_declaration) - && !get_AT (c, DW_AT_specification))); + && !get_AT (c, DW_AT_specification)) + || c->die_tag == DW_TAG_namespace); } static char * |