https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113267
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tamar Christina <tnfch...@gcc.gnu.org>: https://gcc.gnu.org/g:109f2316725bd74d85279fa749e5ea59686ad320 commit r14-7037-g109f2316725bd74d85279fa749e5ea59686ad320 Author: Tamar Christina <tamar.christ...@arm.com> Date: Tue Jan 9 11:19:24 2024 +0000 frontend: don't ice with pragma NOVECTOR if loop has no condition [PR113267] In C you can have loops without a condition, the original version of the patch was rejecting the use of #pragma GCC novector, however during review it was changed to not due this with the reason that we didn't want to give a compile error with such cases. However because annotations seem to be only be allowed on conditions (unless I'm mistaken?) the attached example ICEs because there's no condition. This will have it ignore the pragma instead of ICEing. I don't know if this is the best solution, but as far as I can tell we can't attach the annotation to anything else. gcc/c/ChangeLog: PR c/113267 * c-parser.cc (c_parser_for_statement): Skip the pragma is no cond. gcc/testsuite/ChangeLog: PR c/113267 * gcc.dg/pr113267.c: New test.