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

--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain D Sandoe <[email protected]>:

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

commit r17-2115-gdc76a7f5c60459f467f8cc371e9c3e507669e3ad
Author: Iain Sandoe <[email protected]>
Date:   Thu Jun 25 07:21:35 2026 +0100

    objective-c,c++: Make declarations language-aware [PR124260].

    This is preparation for the main part of the fix of the PR, in this we
    make sure to build decls with language-specific data when the compiler
    is Objective-c++.  This is because Objective-C metadata are extern "C"
    and that needs the lang-specific-data to record it.

            PR objc/124260

    gcc/objc/ChangeLog:

            * objc-act.cc (objc_create_temporary_var, objc_build_struct,
            synth_module_prologue, objc_build_internal_const_str_type,
            objc_begin_catch_clause, objc_push_parm, synth_self_and_ucmd_args,
            start_method_def, objc_start_function,
            get_super_receiver): Use build_lang_decl for Objective-C++.
            * objc-act.h (objc_build_decl): New.
            * objc-gnu-runtime-abi-01.cc (gnu_runtime_01_initialize,
            objc_add_static_instance, handle_class_ref): use build_lang_decl
            for Objective-C++.
            * objc-next-runtime-abi-01.cc (next_runtime_01_initialize,
            next_runtime_abi_01_build_const_string_constructor): Likewise.
            * objc-next-runtime-abi-02.cc (next_runtime_02_initialize,
            next_runtime_abi_02_build_const_string_constructor): Likewise.
            * objc-runtime-shared-support.cc (create_field_decl,
            start_var_decl): Likewise.

    Signed-off-by: Iain Sandoe <[email protected]>

Reply via email to