On Wed, Feb 14, 2018 at 9:53 AM, Paolo Carlini <paolo.carl...@oracle.com> wrote:
> 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.
> ////////////////

Reply via email to