re PR debug/86523 (ICE in gen_member_die, at dwarf2out.c:24933 starting from r262560)
authorRichard Biener <rguenther@suse.de>
Wed, 18 Jul 2018 06:54:23 +0000 (06:54 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 18 Jul 2018 06:54:23 +0000 (06:54 +0000)
commit97f132350479327123dc157b66c8a2a2fddeacfd
tree651776caf747045f78b75be03dff8073b074b7e9
parentdf6a7b9d37edc1da49c5eec4963b7df3e3781d7a
re PR debug/86523 (ICE in gen_member_die, at dwarf2out.c:24933 starting from r262560)

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

PR debug/86523
cp/
* decl2.c (c_parse_final_cleanups): Call write_out_vars before
start_static_storage_duration_function sets current_function_decl.

* g++.dg/lto/pr86523-3_0.C: New testcase.

From-SVN: r262849
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr86523-3_0.C [new file with mode: 0644]