Fortran: Avoid running into assert with -fcheck= + UBSAN
authorTobias Burnus <tobias@codesourcery.com>
Fri, 22 Oct 2021 21:23:06 +0000 (23:23 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 22 Oct 2021 21:48:57 +0000 (23:48 +0200)
commit24e99e6ec1cc57f3660c00ff677c7feb16aa94d2
treee8289755fc57f2a57dbbd94b2a2b2d5a6328f66b
parentaa41680e481456917824e3794c526521b9520589
Fortran: Avoid running into assert with -fcheck= + UBSAN

PR fortran/92621
gcc/fortran/
* trans-expr.c (gfc_trans_assignment_1): Add STRIP_NOPS.

gcc/testsuite/
* gfortran.dg/bind-c-intent-out-2.f90: New test.
gcc/fortran/trans-expr.c
gcc/testsuite/gfortran.dg/bind-c-intent-out-2.f90 [new file with mode: 0644]