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

--- Comment #8 from janus at gcc dot gnu.org ---
(In reply to janus from comment #0)
> Consider the following snippet:
> 
> implicit none
> integer, pointer :: p
> print *,associated(p)
> end
> 
> [...]
> Right now the above program simply prints "T". This is kind of dangerous,
> since it looks like the pointer is associated with some target, while in
> fact it is not. ifort prints "F". I didn't check other compilers.

Note that the output of this program actually seems to depend on the
optimization level: With -O0 I get 'T', but with -O{1,2,3} I see 'F.

Reply via email to