PR c++/79176 - lambda ICE with -flto -Os
authorJason Merrill <jason@redhat.com>
Thu, 26 Jan 2017 15:30:43 +0000 (10:30 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 26 Jan 2017 15:30:43 +0000 (10:30 -0500)
commiteffdaefed3023fea3c3b56932d1a2be816af7aea
tree82523a740f762ef3b600b444c88a7f69062a9982
parente39dd8029d9d1874317f757545be86f40b867559
PR c++/79176 - lambda ICE with -flto -Os

* decl2.c (vague_linkage_p): Handle decloned 'tors.
* tree.c (decl_linkage): Likewise.

From-SVN: r244935
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/tree.c
gcc/testsuite/g++.dg/opt/declone3.C [new file with mode: 0644]