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

--- Comment #2 from anlauf at gcc dot gnu.org ---
Sidenote: on 15-trunk, try: -fcheck=bounds -finline-intrinsics=maxloc

At line 8 of file pr82660.f90
Fortran runtime error: Array bound mismatch for dimension 1 of array 'res'
(3/2)

Error termination. Backtrace:
#0  0x400d36 in __tst_MOD_foo
        at /home/anlauf/gcc-bugs/pr82660.f90:8
#1  0x400e05 in MAIN__
        at /home/anlauf/gcc-bugs/pr82660.f90:16
#2  0x400e3c in main
        at /home/anlauf/gcc-bugs/pr82660.f90:13

Reply via email to