2019-02-03 Richard Biener <rguenther@suse.de>
PR debug/87295
* dwarf2out.c (copy_ancestor_tree): Register non-stubs as
orig.
* g++.dg/debug/dwarf2/pr87295.C: New testcase.
From-SVN: r268485
+2019-02-03 Richard Biener <rguenther@suse.de>
+
+ PR debug/87295
+ * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
+ orig.
+
2019-02-02 Jakub Jelinek <jakub@redhat.com>
PR middle-end/87887
decl_table_entry **slot = NULL;
struct decl_table_entry *entry = NULL;
+ /* If DIE refers to a stub unfold that so we get the appropriate
+ DIE registered as orig in decl_table. */
+ if (dw_die_ref c = get_AT_ref (die, DW_AT_signature))
+ die = c;
+
if (decl_table)
{
/* Check if the entry has already been copied to UNIT. */
+2019-02-03 Richard Biener <rguenther@suse.de>
+
+ PR debug/87295
+ * g++.dg/debug/dwarf2/pr87295.C: New testcase.
+
2019-02-02 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/88298
--- /dev/null
+// { dg-additional-options "-fdebug-types-section" }
+// { dg-require-effective-target c++11 }
+
+struct A {};
+namespace N {
+ struct B {
+ using C = struct H {};
+ using D = A;
+ };
+}
+struct E : N::B {
+ typedef C C;
+};
+namespace N {
+ struct F {
+ E::C d;
+ E::D h;
+ };
+}
+struct G {
+ N::F i;
+} j;