]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: visibility wrt concept-id as targ [PR115283]
authorPatrick Palka <ppalka@redhat.com>
Thu, 13 Jun 2024 00:05:05 +0000 (20:05 -0400)
committerPatrick Palka <ppalka@redhat.com>
Thu, 13 Jun 2024 00:05:05 +0000 (20:05 -0400)
commitb1fe718cbe0c8883af89f52e0aad3ebf913683de
treeedab9c1f24a6841e1c1f7bd8472dabe38534257a
parent5288935d30c4615cce664ca8fba65eecf05c326f
c++: visibility wrt concept-id as targ [PR115283]

Like with alias templates, it seems we don't maintain visibility flags
for concepts either, so min_vis_expr_r should ignore them for now.
Otherwise after r14-6789 we may incorrectly give a function template that
uses a concept-id in its signature internal linkage.

PR c++/115283

gcc/cp/ChangeLog:

* decl2.cc (min_vis_expr_r) <case TEMPLATE_DECL>: Ignore
concepts.

gcc/testsuite/ChangeLog:

* g++.dg/template/linkage5.C: New test.

Reviewed-by: Jason Merrill <jason@redhat.com>
gcc/cp/decl2.cc
gcc/testsuite/g++.dg/template/linkage5.C [new file with mode: 0644]