https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81607
--- Comment #7 from rguenther at suse dot de <rguenther at suse dot de> --- On Mon, 31 Jul 2017, mpolacek at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81607 > > --- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- > Actually I think richi's fix is the right one. Let me test. Note for aggregate types fold_const might just ICE so I'm not 100% sure we don't need some more guards on it. Like if type != expected-type or so?