https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85646
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed May 9 02:34:03 2018 New Revision: 260069 URL: https://gcc.gnu.org/viewcvs?rev=260069&root=gcc&view=rev Log: PR c++/85646 - lambda visibility. * decl2.c (determine_visibility): Don't mess with template arguments from the containing scope. (vague_linkage_p): Check DECL_ABSTRACT_P before looking at a 'tor thunk. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/visibility/lambda1.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/decl2.c