https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79413
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The DECL_EXPR is there, the problem is that gimplify_type_sizes doesn't do anything about it, because is_gimple_sizepos says it is ok: 101 return (expr == NULL_TREE 102 || TREE_CONSTANT (expr) 103 || TREE_CODE (expr) == VAR_DECL 104 || CONTAINS_PLACEHOLDER_P (expr)); and (sizetype) (1 / 0) * 4 has TREE_CONSTANT set on it. Wonder if is_gimple_sizepos shouldn't use is_gimple_min_invariant instead of TREE_CONSTANT or something similar.