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

--- Comment #22 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Jason Merrill <[email protected]>:

https://gcc.gnu.org/g:3d84356bcbeefabf45420fe1299e29a079a96adb

commit r16-6723-g3d84356bcbeefabf45420fe1299e29a079a96adb
Author: Jason Merrill <[email protected]>
Date:   Fri Jan 9 14:01:26 2026 +0800

    c++: more gnu_inline linkage adjustment

    Since r16-6477 we allow a gnu_inline to be a key method, because it is only
    emitted in one place.  It occurs to me that we should make the same
    adjustment to other places that check DECL_DECLARED_INLINE_P to decide if a
    function has inline/vague/comdat linkage.

            PR libstdc++/123326

    gcc/cp/ChangeLog:

            * cp-tree.h (DECL_NONGNU_INLINE_P): New.
            * decl.cc (duplicate_decls, start_decl): Check it.
            * decl2.cc (vague_linkage_p, import_export_class): Likewise.
            (vtables_uniquely_emitted, import_export_decl): Likewise.
            * class.cc (determine_key_method): Check it instead of
            lookup_attribute.

Reply via email to