https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102243
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>: https://gcc.gnu.org/g:c3895ef466f3068cac6f5c18b55716f494484917 commit r12-3673-gc3895ef466f3068cac6f5c18b55716f494484917 Author: Martin Sebor <mse...@redhat.com> Date: Sun Sep 19 17:16:26 2021 -0600 Handle null cfun [PR102243]. Resolves: PR middle-end/102243 - ICE on placement new at global scope gcc/ChangeLog: PR middle-end/102243 * tree-ssa-strlen.c (get_range): Handle null cfun. gcc/testsuite/ChangeLog: PR middle-end/102243 * g++.dg/warn/Wplacement-new-size-10.C: New test.