[Bug fortran/45425] Bounds check applied before MASK of WHERE construct
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 18 01:26:32 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45425
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Last reconfirmed|2010-08-28 19:51:18 |2021-12-17
Known to fail| |
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
We also now get a warning since GCC 8 too:
/app/example.f90:10:10:
8 | do i = 2, 2
| 2
9 | where (mask)
10 | A = b(i)
| 1
Warning: Array reference at (1) out of bounds (2 > 1) in loop beginning at (2)
/app/example.f90:10:10:
8 | do i = 2, 2
| 2
9 | where (mask)
10 | A = b(i)
| 1
Warning: Array reference at (1) out of bounds (2 > 1) in loop beginning at (2)
More information about the Gcc-bugs
mailing list