[Bug fortran/87449] -Wunused-variable and associate
m.diehl at mpie dot de
gcc-bugzilla@gcc.gnu.org
Fri Dec 7 20:56:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87449
Martin Diehl <m.diehl at mpie dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Martin Diehl <m.diehl at mpie dot de> ---
It appears that b does not need to be defined for associate, so
program test
implicit none
real :: a = 5
associate(b => a)
write(6,*) b
end associate
end program
is a valid program where b is only defined within the associate construct and
no warning appears
More information about the Gcc-bugs
mailing list