https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85646
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Tue May 8 03:13:09 2018 New Revision: 260022 URL: https://gcc.gnu.org/viewcvs?rev=260022&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-8-branch/gcc/testsuite/g++.dg/ext/visibility/lambda1.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/decl2.c