re PR debug/86523 (ICE in gen_member_die, at dwarf2out.c:24933 starting from r262560)
authorRichard Biener <rguenther@suse.de>
Mon, 16 Jul 2018 13:57:32 +0000 (13:57 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 16 Jul 2018 13:57:32 +0000 (13:57 +0000)
commit0150d9a1cd06feebd2e8efa56e364c8f377fb633
tree044640fe0682e83a6c089fd66a1cf48dfef36b40
parentc4d0acf8f7af9c0ab1023b1e09cb17ae9b537204
re PR debug/86523 (ICE in gen_member_die, at dwarf2out.c:24933 starting from r262560)

2018-07-16  Richard Biener  <rguenther@suse.de>

PR lto/86523
* dwarf2out.c (dwarf2out_register_external_die): Assign DIE parents
for function-local FUNCTION_DECL and RESULT_DECL immediately.

* g++.dg/lto/pr86523-1_0.C: New testcase.
* g++.dg/lto/pr86523-2_0.C: Likewise.

From-SVN: r262696
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr86523-1_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr86523-2_0.C [new file with mode: 0644]