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

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

https://gcc.gnu.org/g:0e485b8c85c31856b9f7c91015ac94874b100bd4

commit r15-7504-g0e485b8c85c31856b9f7c91015ac94874b100bd4
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