On Tue, Oct 16, 2018 at 2:39 PM Paolo Carlini <paolo.carl...@oracle.com> wrote: > the main issue is already fixed in trunk - we don't ICE anymore - but I > noticed that for ill-formed code like: > > int i = static_cast<struct d>(i); > > we emit a duplicate diagnostic about the incomplete type d, easy to > avoid by returning error_mark_node from > perform_direct_initialization_if_possible when build_special_member_call > returns it. I think this latter tweak qualifies as obvious, per a > comment made by Jason a while ago...
Yes, but in this case it might be better to handle it in build_cplus_new, to also cover other uses of that function. Jason