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

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Similar(?) ICE with C

[Book15] f90/bug% gcc
/opt/gcc/_clean/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-2.c
-fsanitize=float-cast-overflow
/opt/gcc/_clean/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-2.c: In function
'test_mult':
/opt/gcc/_clean/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-2.c:71:60: internal
compiler error: in gimplify_expr, at gimplify.c:10845
   TEST_COMPOUND_ARITH (CMPLX (1.5, 2.5), CMPLX (3.5, 4.5), *);
                                                            ^

/opt/gcc/_clean/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-2.c:15:14: note: in
definition of macro 'TEST_COMPOUND'
       if ((a OP##= (RHSVAL)) != (TYPE) ((TYPE) (LHSVAL) OP (RHSVAL))) \
              ^~

/opt/gcc/_clean/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-2.c:71:3: note: in
expansion of macro 'TEST_COMPOUND_ARITH'
   TEST_COMPOUND_ARITH (CMPLX (1.5, 2.5), CMPLX (3.5, 4.5), *);
   ^~~~~~~~~~~~~~~~~~~


/opt/gcc/_clean/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-2.c:71:60: internal
compiler error: Abort trap: 6
   TEST_COMPOUND_ARITH (CMPLX (1.5, 2.5), CMPLX (3.5, 4.5), *);
                                                            ^

/opt/gcc/_clean/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-2.c:15:14: note: in
definition of macro 'TEST_COMPOUND'
       if ((a OP##= (RHSVAL)) != (TYPE) ((TYPE) (LHSVAL) OP (RHSVAL))) \
              ^~

/opt/gcc/_clean/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-2.c:71:3: note: in
expansion of macro 'TEST_COMPOUND_ARITH'
   TEST_COMPOUND_ARITH (CMPLX (1.5, 2.5), CMPLX (3.5, 4.5), *);
   ^~~~~~~~~~~~~~~~~~~

A list of failing Fortran tests can be obtained by running

make -k check-gfortran
RUNTESTFLAGS="--target_board=unix'{-m32/-fsanitize=float-cast-overflow,-m64/-fsanitize=float-cast-overflow}'"

in the gcc directory:

FAIL: gfortran.dg/PR19754_2.f90   -O0  (internal compiler error)
FAIL: gfortran.dg/alloc_comp_default_init_1.f90   -O0  (internal compiler
error)
FAIL: gfortran.dg/char_result_5.f90   -O0  (internal compiler error)
FAIL: gfortran.dg/char_result_6.f90   -O0  (internal compiler error)
...

Reply via email to