https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87295
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Jan 29 08:12:02 2019 New Revision: 268361 URL: https://gcc.gnu.org/viewcvs?rev=268361&root=gcc&view=rev Log: 2019-01-29 Richard Biener <rguent...@suse.de> PR debug/87295 * dwarf2out.c (collect_skeleton_dies): New helper. (copy_decls_for_unworthy_types): Call it. (build_abbrev_table): Assert we do not try to replace DW_AT_signature refs with local refs. * g++.dg/lto/pr87295_0.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/lto/pr87295_0.C Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c trunk/gcc/testsuite/ChangeLog