On Thu, Jan 20, 2022 at 02:58:21PM +0100, Richard Biener via Gcc-patches wrote: > The following avoids us ICEing doing constant folding from variables > with aliases of different types. The formerly used fold_convert > wasn't entirely correct even for the cases it handled and using > a VIEW_CONVERT_EXPR avoids the ICE. Reading from a larger alias > will cause unfolded constants to appear but appearantly we handle > that just "fine". > > b.0_1 = VIEW_CONVERT_EXPR<double>(1);
If they have the same sizes, why not, but doesn't int have different size from double and isn't VCE defined only for same sizes? Jakub