decl2.c (min_vis_expr_r, [...]): New.
authorJason Merrill <jason@redhat.com>
Tue, 13 Nov 2018 04:46:20 +0000 (23:46 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 13 Nov 2018 04:46:20 +0000 (23:46 -0500)
commit7c23c87c93f3eafa5c22d1f4f52711d97f3a4329
tree5a2ab00adb89fb212cae894ad79731ed185c08de
parenta6bb6b07f76c4431cb5a2a520ac33f7c970b80c1
decl2.c (min_vis_expr_r, [...]): New.

* 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.

From-SVN: r266054
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/g++.dg/abi/no-linkage-expr1.C [new file with mode: 0644]