https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105818
--- Comment #1 from Arseny Solokha <asolokha at gmx dot com> --- Sorry, there's a newline missing after the first paragraph, so the testcase looks like this: #pragma GCC optimize "-fno-tree-vectorize" void foo (void) { void bar (void); }