https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115283

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:b1fe718cbe0c8883af89f52e0aad3ebf913683de

commit r15-1227-gb1fe718cbe0c8883af89f52e0aad3ebf913683de
Author: Patrick Palka <ppa...@redhat.com>
Date:   Wed Jun 12 20:05:05 2024 -0400

    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 <ja...@redhat.com>

Reply via email to