[Bug fortran/95718] [8/9/10/11 Regression] Wrong pointer associated status without initialization

peng.wang@compiler-dev.com gcc-bugzilla@gcc.gnu.org
Thu Jul 23 07:29:08 GMT 2020


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

--- Comment #4 from PengWang <peng.wang@compiler-dev.com> ---
(In reply to kargl from comment #3)
>    16.5.2.2 Pointer association status
> 
>    A pointer may have a pointer association status of associated,
>    disassociated, or undefined.  Its association status may change
>    during execution of a program.  Unless a pointer is initialized
>    (explicitly or by default), it has an initial association status
>    of undefined.  A pointer may be initialized to have an association
>    status of disassociated or associated.
> 
>    13.7.16 ASSOCIATED (POINTER [, TARGET])
> 
>    POINTER shall be a pointer.  It may be of any type or may be a
>       procedure pointer.  Its pointer association status shall not
>       be undefined.
> 
> Your program is invalid.

thank you very much! The status of undefined has confused me for a long time,
now I understand it finally, thank you~


More information about the Gcc-bugs mailing list