https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94131
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <l...@gcc.gnu.org>: https://gcc.gnu.org/g:05c13c439903eb78f109bcab62fd9a74f03a3c9b commit r10-7378-g05c13c439903eb78f109bcab62fd9a74f03a3c9b Author: Martin Sebor <mse...@redhat.com> Date: Wed Mar 25 09:39:50 2020 -0600 PR tree-optimization/94131 - ICE on printf with a VLA string and -fno-tree-ccp gcc/testsuite/ChangeLog: PR tree-optimization/94131 * gcc.dg/pr94131.c: New test. gcc/ChangeLog: PR tree-optimization/94131 * gimple-fold.c (get_range_strlen_tree): Fail for variable-length types and decls. * tree-ssa-strlen.c (get_range_strlen_dynamic): Avoid assuming types have constant sizes.