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

--- Comment #2 from CVS 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:726723c476800285cfbdfce612cedde4a9a7ad58

commit r14-5826-g726723c476800285cfbdfce612cedde4a9a7ad58
Author: Nathaniel Shead <nathanielosh...@gmail.com>
Date:   Wed Nov 15 20:50:53 2023 +1100

    c++: Allow exporting const-qualified namespace-scope variables [PR99232]

    By [basic.link] p3.2.1, a non-template non-volatile const-qualified
    variable is not necessarily internal linkage in a module declaration,
    and rather may have module linkage (or external linkage if it is
    exported, see p4.8).

            PR c++/99232

    gcc/cp/ChangeLog:

            * decl.cc (grokvardecl): Don't mark variables attached to
            modules as internal.

    gcc/testsuite/ChangeLog:

            * g++.dg/modules/pr99232_a.C: New test.
            * g++.dg/modules/pr99232_b.C: New test.

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

Reply via email to