PR c++/83720 - ICE with lambda and LTO.
authorJason Merrill <jason@redhat.com>
Mon, 22 Jan 2018 21:51:53 +0000 (16:51 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 22 Jan 2018 21:51:53 +0000 (16:51 -0500)
commit1fcaa1eb87540b689b435914a0d82bc9b65bcc34
treeaa8f02923e553c2ef1ed326d60b5888d83e7467f
parent3774938ec6bd45fa4038613ff0a5d3cf56335a60
PR c++/83720 - ICE with lambda and LTO.

* decl2.c (determine_visibility): Clear template_decl for
function-scope decls.  Propagate anonymous linkage from containing
function.

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