https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89091
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Feb 20 23:01:41 2019 New Revision: 269056 URL: https://gcc.gnu.org/viewcvs?rev=269056&root=gcc&view=rev Log: PR middle-end/89091 * fold-const.c (decode_field_reference): Return NULL_TREE if lang_hooks.types.type_for_size returns NULL. Check it before overwriting *exp_. Use return NULL_TREE instead of return 0. * gcc.dg/torture/pr89091.c: New test. Added: trunk/gcc/testsuite/gcc.dg/torture/pr89091.c Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c trunk/gcc/testsuite/ChangeLog