This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85646] [7/8/9 Regression] Incorrect lambda visibility with -fvisibility=hidden
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 May 2018 23:50:48 +0000
- Subject: [Bug c++/85646] [7/8/9 Regression] Incorrect lambda visibility with -fvisibility=hidden
- Auto-submitted: auto-generated
- References: <bug-85646-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85646
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon May 7 23:50:16 2018
New Revision: 260017
URL: https://gcc.gnu.org/viewcvs?rev=260017&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:
trunk/gcc/testsuite/g++.dg/ext/visibility/lambda1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c