[Bug middle-end/123876] ICE: Segmentation fault with asm goto and openmp simd/for
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 8 05:18:47 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123876
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:93e69dfdafd0ef6659cb6d26ea611402c5871549
commit r15-10890-g93e69dfdafd0ef6659cb6d26ea611402c5871549
Author: Jakub Jelinek <jakub@redhat.com>
Date: Fri Jan 30 11:00:41 2026 +0100
openmp: Handle asm goto in diagnose_sb_2 [PR123876]
We weren't handling asm goto in diagnose_sb_2, so could ICE
on invalid code instead of diagnosing it as invalid.
Note, for C++ the FE already diagnoses that instead of deferring
it will omp-low.cc.
2026-01-30 Jakub Jelinek <jakub@redhat.com>
PR middle-end/123876
* omp-low.cc (diagnose_sb_2): Handle GIMPLE_ASM.
* gcc.dg/gomp/pr123876.c: New test.
(cherry picked from commit de23c4ad41319525077da03ecbabf41efbf9a3b3)
More information about the Gcc-bugs
mailing list