aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2006-01-12 16:01:15 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2006-01-12 16:01:15 +0000
commit6e976965454c79de70cba16d4f51401859eb569c (patch)
treef1b8e70e70147e638cff0c1a9a617ab2d45308fe /gcc/cp/class.c
parentb5e25bec498caf0710c2488dae6af53182f4c234 (diff)
downloadgcc-6e976965454c79de70cba16d4f51401859eb569c.zip
gcc-6e976965454c79de70cba16d4f51401859eb569c.tar.gz
gcc-6e976965454c79de70cba16d4f51401859eb569c.tar.bz2
re PR debug/24824 (ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups)
PR c++/24824 * class.c (handle_using_decl): Pass correct scope to cp_emit_debug_info_for_using. PR c++/24824 * g++.dg/debug/dwarf2-1.C: New. From-SVN: r109643
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 4509ac2..86dbcca 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -1159,7 +1159,7 @@ handle_using_decl (tree using_decl, tree t)
old_value = NULL_TREE;
}
- cp_emit_debug_info_for_using (decl, current_class_type);
+ cp_emit_debug_info_for_using (decl, USING_DECL_SCOPE (using_decl));
if (is_overloaded_fn (decl))
flist = decl;