This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[C++ Patch] PR 57948


Hi,

this testcase triggers the gcc_assert in initialize_reference because the conv returned by reference_binding has conv->kind == ck_ambig.

Before the crash, the diagnostic about ambiguous conversion is produced by build_user_type_conversion_1, and it seems that in this case too we can safely return error_mark_node, as happens when it's called by build_user_type_conversion instead of direct_reference_binding.

Tested x86_64-linux.

Thanks,
Paolo.

///////////////////

Attachment: CL_57948
Description: Text document

Attachment: patch_57948
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]