]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR debug/24824 (ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate...
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 12 Jan 2006 16:01:15 +0000 (16:01 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 12 Jan 2006 16:01:15 +0000 (16:01 +0000)
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

gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2-1.C [new file with mode: 0644]

index 180c926b7ea79754f8030b9db42d769925b83b97..62bb3aab5db58306420a283fddc46a9ad5838832 100644 (file)
@@ -1,5 +1,12 @@
+2006-01-12  Nathan Sidwell  <nathan@codesourcery.com>
+
+       PR c++/24824
+       * class.c (handle_using_decl): Pass correct scope to
+       cp_emit_debug_info_for_using.
+
 2006-01-11  Nathan Sidwell  <nathan@codesourcery.com>
 
+       PR c++/25386
        * tree.c (lvalue_p_1): Any part of a COMPONENT_REF affects
        packedness.
 
index 4509ac23bbb7dc33f4f3c7e3ff86adbfc91cfe8c..86dbcca14e62ba06a1af4846852716b3c5e1ef24 100644 (file)
@@ -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;
index 3032b348cc75aae430119f3be8df4ee379398070..1df57570b208b5cad1721bb4e25018bd1507fd94 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-12  Nathan Sidwell  <nathan@codesourcery.com>
+
+       PR c++/24824
+       * g++.dg/debug/dwarf2-1.C: New.
+
 2006-01-11  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR testsuite/25728
@@ -88,6 +93,7 @@
 
 2006-01-11  Nathan Sidwell  <nathan@codesourcery.com>
 
+       PR c++/25386
        * g++.dg/ext/packed3.C: Add expected packed error.
 
 2006-01-11  Hans-Peter Nilsson  <hp@axis.com>
diff --git a/gcc/testsuite/g++.dg/debug/dwarf2-1.C b/gcc/testsuite/g++.dg/debug/dwarf2-1.C
new file mode 100644 (file)
index 0000000..e90d510
--- /dev/null
@@ -0,0 +1,22 @@
+// Copyright (C) 2006 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 6 Jan 2006 <nathan@codesourcery.com>
+
+// PR 24824
+// Origin:      wanderer@rsu.ru
+
+// { dg-options "-feliminate-dwarf2-dups" }
+
+namespace N
+{
+  struct Base
+  {
+    int m;
+  };
+
+  struct Derived : Base
+  {
+    using Base::m;
+  };
+}
+
+N::Derived thing;