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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Nathaniel Shead
<nsh...@gcc.gnu.org>:

https://gcc.gnu.org/g:9fa962a5db797665972aaa65426b881754782cfb

commit r14-11305-g9fa962a5db797665972aaa65426b881754782cfb
Author: Nathaniel Shead <nathanielosh...@gmail.com>
Date:   Wed Feb 12 23:07:43 2025 +1100

    c++: Constrain visibility for CNTTPs with internal types [PR118849]

    While looking into PR118846 I noticed that we don't currently constrain
    the linkage of functions involving CNTTPs of internal-linkage types.  It
    seems to me that this would be sensible to do.

            PR c++/118849

    gcc/cp/ChangeLog:

            * decl2.cc (min_vis_expr_r): Constrain visibility according to
            the type of decl_constant_var_p decls.

    gcc/testsuite/ChangeLog:

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

    Signed-off-by: Nathaniel Shead <nathanielosh...@gmail.com>

Reply via email to