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

--- Comment #3 from Harald Anlauf <anlauf at gcc dot gnu.org> ---
The original testcase does not pass with NAG or ifx, both execute the "stop 8".

Enabling array-bounds-checking lets both complain:

Runtime Error: pr129133-forall-pointer-assignment-scheduling-bounds.f90, line
40: Subscript 1 of  (value 1) is out of range (5:6)
Program terminated by fatal error
Aborted

or

forrtl: severe (408): fort: (3): Subscript #2 of the array P has value 1 which
is less than the lower bound of 6

Image              PC                Routine            Line        Source      
a.out              0000000000406090  test_lb_conflict           40 
pr129133-forall-pointer-assignment-scheduling-bounds.f90
a.out              00000000004086B2  end_to_end                 72 
pr129133-forall-pointer-assignment-scheduling-bounds.f90
[...]

The testcase thus should be checked for validity.

Reply via email to