* decl2.c (min_vis_expr_r, expr_visibility): New.
commit1c432fa5115d04d82d2c788d11cc3a6aaca28920
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Nov 2018 04:46:20 +0000 (13 04:46 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Nov 2018 04:46:20 +0000 (13 04:46 +0000)
tree5a2ab00adb89fb212cae894ad79731ed185c08de
parent76b94d4ba654e9af1882865933343d11f5c3b18b
* decl2.c (min_vis_expr_r, expr_visibility): New.

We weren't properly constraining visibility based on names that appear in
the mangled representation of expressions.  This was made more obvious
by the upcoming unevaluated lambdas patch.

(min_vis_r): Call expr_visibility.
(constrain_visibility_for_template): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266054 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/g++.dg/abi/no-linkage-expr1.C [new file with mode: 0644]