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 84350 ("[7/8 Regression] ICE with new and auto")


Hi,

today I spent some time on this: basing on r245826, when we started ICEing. For example I wondered if we wanted to rework the use of do_auto_deduction from build_new, and check CLASS_PLACEHOLDER_TEMPLATE (auto_node) and possibly directly call do_class_deduction when d_init stays NULL_TREE because vec_safe_length (*init) != 1 ( https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/cp/init.c?r1=245826&r2=245825&pathrev=245826 ). But that would require a non-static do_class_deduction and an additional function call from build_new, not at all sure it's worth it. Thus I'm just proposing the below, restoring the old diagnostic and avoiding the ICE.

Thanks, Paolo.

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

Attachment: CL_84350
Description: Text document

Attachment: patch_84350
Description: Text document


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