https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81768

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |openmp
                 CC|                            |amonakov at gcc dot gnu.org

--- Comment #1 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
It's not quite right to say this is minimized from for-5.c, as original for-5.c
does not fail in this way. The difference that makes this one ICE is presence
of #pragma omp declare target [end] around declarations of global arrays.
Unrelated to offloading (fails the same with -foffload=disable).

Without the 'simd' clause it exhibits a different ICE:

pr81768.c: In function ‘f14_tpf_simd_static32._omp_fn.1’:
pr81768.c:21:1: error: constant not recomputed when ADDR_EXPR changed
 }
 ^
&b[0][0][0]
cc1: note: in statement
if (k > &b[0][0][0])
pr81768.c:21:1: error: constant not recomputed when ADDR_EXPR changed
&b[0][0][0]
cc1: note: in statement
if (j > &b[0][0][0])
during IPA pass: *free_lang_data
pr81768.c:21:1: internal compiler error: verify_gimple failed

Reply via email to