public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/97245] New: ASSOCIATE intrinsic does not recognize a ponter variable the second time it is used
@ 2020-09-29 16:23 aluaces at udc dot es
  2020-10-02 13:52 ` [Bug fortran/97245] " dominiq at lps dot ens.fr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: aluaces at udc dot es @ 2020-09-29 16:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97245
           Summary: ASSOCIATE intrinsic does not recognize a ponter
                    variable the second time it is used
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aluaces at udc dot es
  Target Milestone: ---

Created attachment 49289
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49289&action=edit
Minimal working example

In the attached example, the second call to associate() makes the compiler
error with "Error: ‘pointer’ argument of ‘associated’ intrinsic at (1) must be
a POINTER", although it is correct and the first use passes:

MODULE formulaciones
  IMPLICIT NONE

  ABSTRACT INTERFACE
     SUBROUTINE proc_void()
       IMPLICIT NONE
     END SUBROUTINE proc_void
  end INTERFACE

  PROCEDURE(proc_void), POINTER:: pADJSensib

CONTAINS
  subroutine calculo()
    implicit none
    LOGICAL step

    IF(associated(pADJSensib)) THEN
       CALL pADJSensib
    ENDIF

    IF(associated(pADJSensib)) THEN
       CALL pADJSensib
    END IF
  end subroutine calculo

END MODULE formulaciones

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-11-04 14:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 16:23 [Bug fortran/97245] New: ASSOCIATE intrinsic does not recognize a ponter variable the second time it is used aluaces at udc dot es
2020-10-02 13:52 ` [Bug fortran/97245] " dominiq at lps dot ens.fr
2023-11-02 21:46 ` [Bug fortran/97245] ASSOCIATED intrinsic does not recognize a pointer " anlauf at gcc dot gnu.org
2023-11-03 17:55 ` anlauf at gcc dot gnu.org
2023-11-03 18:57 ` anlauf at gcc dot gnu.org
2023-11-03 21:11 ` cvs-commit at gcc dot gnu.org
2023-11-04 14:50 ` cvs-commit at gcc dot gnu.org
2023-11-04 14:53 ` anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).