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

--- Comment #4 from Harald Anlauf <anlauf at gcc dot gnu.org> ---
Here's another one which is too small to deserve a separate PR:

% cat pr126333-z1.f90
subroutine foo (x)
  integer, allocatable :: x(:)
  integer              :: status
  allocate (x(10), stat=status)
  if (status /= 0) error stop 1
end

% gfc-17 -Wall pr126333-z1.f90 -c
pr126333-z1.f90:5:6:

    5 |   if (status /= 0) error stop 1
      |      1
Warning: Undefined variable »status« used at (1) [-Wundefined-vars]

Reply via email to