public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated
@ 2021-03-15 14:24 juergen.reuter at desy dot de
  2021-03-15 14:39 ` [Bug fortran/99602] " juergen.reuter at desy dot de
                   ` (38 more replies)
  0 siblings, 39 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-15 14:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99602
           Summary: [11 regression] runtime error: pointer actual argument
                    not associated
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juergen.reuter at desy dot de
  Target Milestone: ---

This is a new bug report, maybe related to PR 99545, might be created by the
same commits. When compiling Whizard with the following checking/debug flags, 
-O0 -fbacktrace -fcheck=all -Wconversion -Wconversion-extra -Wsurprising
almost all of our functionality fails with the following runtime error:
Fortran runtime error: Pointer actual argument '<some_name>' is not associated
I will provide a reproducer in a moment.

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
@ 2021-03-15 14:39 ` juergen.reuter at desy dot de
  2021-03-15 23:01 ` juergen.reuter at desy dot de
                   ` (37 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-15 14:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Created attachment 50389
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50389&action=edit
First (large) reproducer to play with, reducing atm

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
  2021-03-15 14:39 ` [Bug fortran/99602] " juergen.reuter at desy dot de
@ 2021-03-15 23:01 ` juergen.reuter at desy dot de
  2021-03-15 23:07 ` juergen.reuter at desy dot de
                   ` (36 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-15 23:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Created attachment 50391
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50391&action=edit
Short reproducer

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
  2021-03-15 14:39 ` [Bug fortran/99602] " juergen.reuter at desy dot de
  2021-03-15 23:01 ` juergen.reuter at desy dot de
@ 2021-03-15 23:07 ` juergen.reuter at desy dot de
  2021-03-16  7:30 ` juergen.reuter at desy dot de
                   ` (35 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-15 23:07 UTC (permalink / raw)
  To: gcc-bugs

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

Jürgen Reuter <juergen.reuter at desy dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pault at gcc dot gnu.org

--- Comment #3 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Here is a shorter reproducer, and this time it is the -fcheck=pointer that
leads to the problem. I was able to reproduce this to 80 lines, leading to the
error:
At line 41 of file repro.f90
Fortran runtime error: Pointer actual argument 'm2' is not associated

module m
  implicit none
  private
  public :: m_t
  type :: m_t
     private
  end type m_t
end module m

module m2_testbed
  use m
  implicit none
  private
  public :: prepare_m2
  procedure (prepare_m2_proc), pointer :: prepare_m2 => null ()

  abstract interface
     subroutine prepare_m2_proc (m2)
       import
       class(m_t), intent(inout), pointer :: m2
     end subroutine prepare_m2_proc
  end interface

end module m2_testbed

module a
  use m
  use m2_testbed, only: prepare_m2
  implicit none
  private
  public :: a_1

contains

  subroutine a_1 ()
    class(m_t), pointer :: m2
    m2 => null ()
    call prepare_m2 (m2)
  end subroutine a_1

end module a


module m2
  use m
  implicit none
  private
  public :: m2_t

  type, extends (m_t) :: m2_t
     private
   contains
     procedure :: read => m2_read
  end type m2_t
contains

  subroutine m2_read (m2)
    class(m2_t), intent(out), target :: m2
  end subroutine m2_read
end module m2

program main
  use m2_testbed
  use a, only: a_1
  implicit none
  prepare_m2 => prepare_whizard_m2
  call a_1 ()

contains

  subroutine prepare_whizard_m2 (m2)
    use m
    use m2
    class(m_t), intent(inout), pointer :: m2
    select type (m2)
    type is (m2_t)
       call m2%read ()
    end select
  end subroutine prepare_whizard_m2
end program main

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (2 preceding siblings ...)
  2021-03-15 23:07 ` juergen.reuter at desy dot de
@ 2021-03-16  7:30 ` juergen.reuter at desy dot de
  2021-03-16  7:31 ` juergen.reuter at desy dot de
                   ` (34 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-16  7:30 UTC (permalink / raw)
  To: gcc-bugs

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

Jürgen Reuter <juergen.reuter at desy dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #50391|0                           |1
        is obsolete|                            |

--- Comment #4 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Comment on attachment 50391
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50391
Short reproducer

THere is a missing line, please consider next example.

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (3 preceding siblings ...)
  2021-03-16  7:30 ` juergen.reuter at desy dot de
@ 2021-03-16  7:31 ` juergen.reuter at desy dot de
  2021-03-16  7:32 ` juergen.reuter at desy dot de
                   ` (33 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-16  7:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Created attachment 50393
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50393&action=edit
New short reproducer, this time consistent

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (4 preceding siblings ...)
  2021-03-16  7:31 ` juergen.reuter at desy dot de
@ 2021-03-16  7:32 ` juergen.reuter at desy dot de
  2021-03-16  7:33 ` juergen.reuter at desy dot de
                   ` (32 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-16  7:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Actually, the last example missed a line that I overeagerly deleted too much.
This one is the correct reproducer:
module m
  implicit none
  private
  public :: m_t
  type :: m_t
     private
  end type m_t
end module m

module m2_testbed
  use m
  implicit none
  private
  public :: prepare_m2
  procedure (prepare_m2_proc), pointer :: prepare_m2 => null ()

  abstract interface
     subroutine prepare_m2_proc (m2)
       import
       class(m_t), intent(inout), pointer :: m2
     end subroutine prepare_m2_proc
  end interface

end module m2_testbed

module a
  use m
  use m2_testbed, only: prepare_m2
  implicit none
  private
  public :: a_1

contains

  subroutine a_1 ()
    class(m_t), pointer :: mm
    mm => null ()
    call prepare_m2 (mm)
  end subroutine a_1

end module a


module m2
  use m
  implicit none
  private
  public :: m2_t

  type, extends (m_t) :: m2_t
     private
   contains
     procedure :: read => m2_read
  end type m2_t
contains

  subroutine m2_read (mm)
    class(m2_t), intent(out), target :: mm
  end subroutine m2_read
end module m2

program main
  use m2_testbed
  use a, only: a_1
  implicit none
  prepare_m2 => prepare_whizard_m2
  call a_1 ()

contains

  subroutine prepare_whizard_m2 (mm)
    use m
    use m2
    class(m_t), intent(inout), pointer :: mm
    if (.not. associated (mm))  allocate (m2_t :: mm)    
    select type (mm)
    type is (m2_t)
       call mm%read ()
    end select
  end subroutine prepare_whizard_m2
end program main

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (5 preceding siblings ...)
  2021-03-16  7:32 ` juergen.reuter at desy dot de
@ 2021-03-16  7:33 ` juergen.reuter at desy dot de
  2021-03-16  8:14 ` rguenth at gcc dot gnu.org
                   ` (31 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-16  7:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Jürgen Reuter from comment #3)
> Here is a shorter reproducer, and this time it is the -fcheck=pointer that
> leads to the problem. I was able to reproduce this to 80 lines, leading to
> the error:
> At line 41 of file repro.f90
> Fortran runtime error: Pointer actual argument 'm2' is not associated
> 
> module m
m2
> end program main

Please consider the follow-up comment with the corrected example, Comment #6.

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (6 preceding siblings ...)
  2021-03-16  7:33 ` juergen.reuter at desy dot de
@ 2021-03-16  8:14 ` rguenth at gcc dot gnu.org
  2021-03-16  8:31 ` pault at gcc dot gnu.org
                   ` (30 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-03-16  8:14 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
   Target Milestone|---                         |11.0

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (7 preceding siblings ...)
  2021-03-16  8:14 ` rguenth at gcc dot gnu.org
@ 2021-03-16  8:31 ` pault at gcc dot gnu.org
  2021-03-16  8:43 ` juergen.reuter at desy dot de
                   ` (29 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: pault at gcc dot gnu.org @ 2021-03-16  8:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Jürgen Reuter from comment #6)
> Actually, the last example missed a line that I overeagerly deleted too
> much. This one is the correct reproducer:
> module m
>   implicit none
>   private
>   public :: m_t
>   type :: m_t
>      private
>   end type m_t
> end module m
> 
> module m2_testbed
>   use m
>   implicit none
>   private
>   public :: prepare_m2
>   procedure (prepare_m2_proc), pointer :: prepare_m2 => null ()
> 
>   abstract interface
>      subroutine prepare_m2_proc (m2)
>        import
>        class(m_t), intent(inout), pointer :: m2
>      end subroutine prepare_m2_proc
>   end interface
> 
> end module m2_testbed
> 
> module a
>   use m
>   use m2_testbed, only: prepare_m2
>   implicit none
>   private
>   public :: a_1
> 
> contains
> 
>   subroutine a_1 ()
>     class(m_t), pointer :: mm
>     mm => null ()
>     call prepare_m2 (mm)
>   end subroutine a_1
> 
> end module a
> 
> 
> module m2
>   use m
>   implicit none
>   private
>   public :: m2_t
>   
>   type, extends (m_t) :: m2_t
>      private
>    contains
>      procedure :: read => m2_read
>   end type m2_t
> contains
> 
>   subroutine m2_read (mm)
>     class(m2_t), intent(out), target :: mm
>   end subroutine m2_read
> end module m2
> 
> program main
>   use m2_testbed
>   use a, only: a_1
>   implicit none
>   prepare_m2 => prepare_whizard_m2
>   call a_1 ()
>   
> contains
> 
>   subroutine prepare_whizard_m2 (mm)
>     use m
>     use m2
>     class(m_t), intent(inout), pointer :: mm
>     if (.not. associated (mm))  allocate (m2_t :: mm)    
>     select type (mm)
>     type is (m2_t)
>        call mm%read ()
>     end select
>   end subroutine prepare_whizard_m2
> end program main

Hi Juergen,

I still cannot reproduce the problem. In fact, the runtime error message does
not appear in the tree dump.

Best regards

Paul

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (8 preceding siblings ...)
  2021-03-16  8:31 ` pault at gcc dot gnu.org
@ 2021-03-16  8:43 ` juergen.reuter at desy dot de
  2021-03-16 10:29 ` juergen.reuter at desy dot de
                   ` (28 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-16  8:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Paul Thomas from comment #8)

> 
> Paul

$ gfortran -fcheck=pointer repro.f90
reuter@Manwe:~/local/packages/whizard/trunk/_build_flags/RT_20210315$ ./a.out 
At line 38 of file repro.f90
Fortran runtime error: Pointer actual argument 'mm' is not associated

Error termination. Backtrace:
#0  0x106ff6fde
#1  0x106ff7c85
#2  0x106ff8256
#3  0x106fe5a9d
#4  0x106fe5c8b
#5  0x106fe5cc6

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (9 preceding siblings ...)
  2021-03-16  8:43 ` juergen.reuter at desy dot de
@ 2021-03-16 10:29 ` juergen.reuter at desy dot de
  2021-03-16 11:50 ` pault at gcc dot gnu.org
                   ` (27 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-16 10:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Jürgen Reuter from comment #9)
> (In reply to Paul Thomas from comment #8)
> 
> > 
> > Paul
> 
> $ gfortran -fcheck=pointer repro.f90
> reuter@Manwe:~/local/packages/whizard/trunk/_build_flags/RT_20210315$
> ./a.out 
> At line 38 of file repro.f90
> Fortran runtime error: Pointer actual argument 'mm' is not associated
> 
> Error termination. Backtrace:
> #0  0x106ff6fde
> #1  0x106ff7c85
> #2  0x106ff8256
> #3  0x106fe5a9d
> #4  0x106fe5c8b
> #5  0x106fe5cc6

So if I understand this correctly then gfortran does a false positive, it
wrongly flags status of the pointer mm as non-associated and exits with a
run-time error. gfortran before didn't do this, and also nagfor with -C=all
doesn't flag this.

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (10 preceding siblings ...)
  2021-03-16 10:29 ` juergen.reuter at desy dot de
@ 2021-03-16 11:50 ` pault at gcc dot gnu.org
  2021-03-16 13:45 ` pault at gcc dot gnu.org
                   ` (26 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: pault at gcc dot gnu.org @ 2021-03-16 11:50 UTC (permalink / raw)
  To: gcc-bugs

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

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-03-16
     Ever confirmed|0                           |1

--- Comment #11 from Paul Thomas <pault at gcc dot gnu.org> ---
I took my build directory down to bedrock and recompiled. I see the problem
now. I'm onto it :-)

Paul

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (11 preceding siblings ...)
  2021-03-16 11:50 ` pault at gcc dot gnu.org
@ 2021-03-16 13:45 ` pault at gcc dot gnu.org
  2021-03-16 13:47 ` juergen.reuter at desy dot de
                   ` (25 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: pault at gcc dot gnu.org @ 2021-03-16 13:45 UTC (permalink / raw)
  To: gcc-bugs

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

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |pault at gcc dot gnu.org

--- Comment #12 from Paul Thomas <pault at gcc dot gnu.org> ---
Created attachment 50397
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50397&action=edit
Fix for the PR

This regtests OK.

The problem seems to have been caused by the fix for PR99112.

Cheers

Paul

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (12 preceding siblings ...)
  2021-03-16 13:45 ` pault at gcc dot gnu.org
@ 2021-03-16 13:47 ` juergen.reuter at desy dot de
  2021-03-16 20:29 ` anlauf at gcc dot gnu.org
                   ` (24 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-16 13:47 UTC (permalink / raw)
  To: gcc-bugs

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

Jürgen Reuter <juergen.reuter at desy dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gcc dot gnu.org

--- Comment #13 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Cool, thanks for the quick reaction, Paul. Maybe Harald can have a look at it
as well :D

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (13 preceding siblings ...)
  2021-03-16 13:47 ` juergen.reuter at desy dot de
@ 2021-03-16 20:29 ` anlauf at gcc dot gnu.org
  2021-03-17 13:51 ` juergen.reuter at desy dot de
                   ` (23 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-03-16 20:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from anlauf at gcc dot gnu.org ---
(In reply to Jürgen Reuter from comment #13)
> Cool, thanks for the quick reaction, Paul. Maybe Harald can have a look at
> it as well :D

LGTM.  It's by Paul.  He simply needs to get the testcase's dg-foo right... ;-)

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (14 preceding siblings ...)
  2021-03-16 20:29 ` anlauf at gcc dot gnu.org
@ 2021-03-17 13:51 ` juergen.reuter at desy dot de
  2021-03-17 17:57 ` anlauf at gcc dot gnu.org
                   ` (22 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-17 13:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to anlauf from comment #14)
> (In reply to Jürgen Reuter from comment #13)
> > Cool, thanks for the quick reaction, Paul. Maybe Harald can have a look at
> > it as well :D
> 
> LGTM.  It's by Paul.  He simply needs to get the testcase's dg-foo right...
> ;-)

Now I'm confused. So you consider the fix ok? Will it then be committed?

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (15 preceding siblings ...)
  2021-03-17 13:51 ` juergen.reuter at desy dot de
@ 2021-03-17 17:57 ` anlauf at gcc dot gnu.org
  2021-03-18  7:26 ` paul.richard.thomas at gmail dot com
                   ` (21 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-03-17 17:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from anlauf at gcc dot gnu.org ---
(In reply to Jürgen Reuter from comment #15)
> > LGTM.  It's by Paul.  He simply needs to get the testcase's dg-foo right...
> > ;-)
> 
> Now I'm confused. So you consider the fix ok? Will it then be committed?

The fix was basically OKed on the fortran ML by Tobias, he only wondered
if there should be a runtime test.  One could simply change the line

! { dg-do compile }

to

! { dg-do run }

before committing.  Still confused?

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (16 preceding siblings ...)
  2021-03-17 17:57 ` anlauf at gcc dot gnu.org
@ 2021-03-18  7:26 ` paul.richard.thomas at gmail dot com
  2021-03-18 20:58 ` juergen.reuter at desy dot de
                   ` (20 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: paul.richard.thomas at gmail dot com @ 2021-03-18  7:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from paul.richard.thomas at gmail dot com <paul.richard.thomas at gmail dot com> ---
Good morning all,

I have attached the revised patch and an additional testcase. I had totally
forgotten about the class pointer gotcha.

OK for master?

Paul

Fortran: Fix runtime errors for class actual arguments [PR99602].

2021-03-18  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/99602
* trans-array.c (gfc_conv_procedure_call): For class formal
arguments, use the _data field attributes for runtime errors.
For class expressions use the class_pointer attribute.

gcc/testsuite/
PR fortran/99602
* gfortran.dg/pr99602.f90: New test.
* gfortran.dg/pr99602a.f90: New test.


On Wed, 17 Mar 2021 at 17:57, anlauf at gcc dot gnu.org <
gcc-bugzilla@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99602
>
> --- Comment #16 from anlauf at gcc dot gnu.org ---
> (In reply to Jürgen Reuter from comment #15)
> > > LGTM.  It's by Paul.  He simply needs to get the testcase's dg-foo
> right...
> > > ;-)
> >
> > Now I'm confused. So you consider the fix ok? Will it then be committed?
>
> The fix was basically OKed on the fortran ML by Tobias, he only wondered
> if there should be a runtime test.  One could simply change the line
>
> ! { dg-do compile }
>
> to
>
> ! { dg-do run }
>
> before committing.  Still confused?
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
> You are on the CC list for the bug.

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (17 preceding siblings ...)
  2021-03-18  7:26 ` paul.richard.thomas at gmail dot com
@ 2021-03-18 20:58 ` juergen.reuter at desy dot de
  2021-03-18 23:03 ` juergen.reuter at desy dot de
                   ` (19 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-18 20:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #20 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Looks like there is still one more case. One of our unit tests is still failing
with this patch. I will report more soon.

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (18 preceding siblings ...)
  2021-03-18 20:58 ` juergen.reuter at desy dot de
@ 2021-03-18 23:03 ` juergen.reuter at desy dot de
  2021-03-18 23:54 ` juergen.reuter at desy dot de
                   ` (18 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-18 23:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #21 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Created attachment 50427
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50427&action=edit
remaing false positive detection (long test)

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (19 preceding siblings ...)
  2021-03-18 23:03 ` juergen.reuter at desy dot de
@ 2021-03-18 23:54 ` juergen.reuter at desy dot de
  2021-03-19  1:20 ` juergen.reuter at desy dot de
                   ` (17 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-18 23:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #22 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Created attachment 50428
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50428&action=edit
bit smaller reproducer, not yet ideal

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (20 preceding siblings ...)
  2021-03-18 23:54 ` juergen.reuter at desy dot de
@ 2021-03-19  1:20 ` juergen.reuter at desy dot de
  2021-03-19  2:23 ` juergen.reuter at desy dot de
                   ` (16 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-19  1:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #23 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Created attachment 50429
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50429&action=edit
first ok-ish reproducer

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (21 preceding siblings ...)
  2021-03-19  1:20 ` juergen.reuter at desy dot de
@ 2021-03-19  2:23 ` juergen.reuter at desy dot de
  2021-03-19  2:24 ` juergen.reuter at desy dot de
                   ` (15 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-19  2:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #24 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Please have a look at my final reproducer. Is that feasible?

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (22 preceding siblings ...)
  2021-03-19  2:23 ` juergen.reuter at desy dot de
@ 2021-03-19  2:24 ` juergen.reuter at desy dot de
  2021-03-19  7:37 ` juergen.reuter at desy dot de
                   ` (14 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-19  2:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #25 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Created attachment 50430
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50430&action=edit
reproducer for another model pointer, final for 2021-03-19-03:22

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (23 preceding siblings ...)
  2021-03-19  2:24 ` juergen.reuter at desy dot de
@ 2021-03-19  7:37 ` juergen.reuter at desy dot de
  2021-03-19  8:16 ` juergen.reuter at desy dot de
                   ` (13 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-19  7:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #26 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Created attachment 50431
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50431&action=edit
Single file reproducer, 7505 lines, no input files any more

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (24 preceding siblings ...)
  2021-03-19  7:37 ` juergen.reuter at desy dot de
@ 2021-03-19  8:16 ` juergen.reuter at desy dot de
  2021-03-19  9:35 ` pault at gcc dot gnu.org
                   ` (12 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-19  8:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #27 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Created attachment 50432
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50432&action=edit
down to 6800 lines

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (25 preceding siblings ...)
  2021-03-19  8:16 ` juergen.reuter at desy dot de
@ 2021-03-19  9:35 ` pault at gcc dot gnu.org
  2021-03-19  9:53 ` juergen.reuter at desy dot de
                   ` (11 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: pault at gcc dot gnu.org @ 2021-03-19  9:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #28 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Jürgen Reuter from comment #27)
> Created attachment 50432 [details]
> reproducer, down to 6800 lines

Hi Juergen,

Stop! Yesterday's final is just fine. The problem is connected with the logic
selecting the runtime error. The code for line 483 ends with

                      D.5856 = model->_vptr->get_par_data_ptr (&model.110,
D.5855);
                      if ((character(kind=1)[0:][1:1] * restrict)
D.5855->chars.data != 0B)
                        {
                          __builtin_free ((void *) D.5855->chars.data);
                          (character(kind=1)[0:][1:1] * restrict)
D.5855->chars.data = 0B;
                        }
                      if ((integer(kind=8)) (D.5856._data == 0B))
                        {
                          _gfortran_runtime_error_at (&"At line 483 of file
models.f90"[1]{lb: 1 sz: 1}, &"Proc-pointer actual argument \'model\' is not
associated"[1]{lb: 1 sz: 1});
                        }
                      field_data_set (&class.109, 0B, 0B, 0B, 0B, 0B, 0B, 0B,
0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, &D.5856, 0B,
0B, 0B);
                    }

The _data field of D.5856 is the result of the call to 'get_par_data_ptr' not
the procedure pointer itself. The result is:
class(modelpar_data_t), pointer :: ptr and the formal argument is:
class(modelpar_data_t), intent(in), pointer, optional :: mass_data

So the call is perfectly proper. The trouble is that the attributes of the
proc_pointer result are not being used.

I am about to start a gdb session :-)

Paul

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (26 preceding siblings ...)
  2021-03-19  9:35 ` pault at gcc dot gnu.org
@ 2021-03-19  9:53 ` juergen.reuter at desy dot de
  2021-03-21 18:53 ` pault at gcc dot gnu.org
                   ` (10 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-19  9:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #29 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Paul Thomas from comment #28)
> (In reply to Jürgen Reuter from comment #27)
> > Created attachment 50432 [details]
> > reproducer, down to 6800 lines
> 
> Hi Juergen,
> 
> Stop! Yesterday's final is just fine. The problem is connected with the
> logic selecting the runtime error. The code for line 483 ends with
> 
>                       D.5856 = model->_vptr->get_par_data_ptr (&model.110,
> D.5855);
>                       if ((character(kind=1)[0:][1:1] * restrict)
> D.5855->chars.data != 0B)
>                         {
>                           __builtin_free ((void *) D.5855->chars.data);
>                           (character(kind=1)[0:][1:1] * restrict)
> D.5855->chars.data = 0B;
>                         }
>                       if ((integer(kind=8)) (D.5856._data == 0B))
>                         {
>                           _gfortran_runtime_error_at (&"At line 483 of file
> models.f90"[1]{lb: 1 sz: 1}, &"Proc-pointer actual argument \'model\' is not
> associated"[1]{lb: 1 sz: 1});
>                         }
>                       field_data_set (&class.109, 0B, 0B, 0B, 0B, 0B, 0B,
> 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, 0B, &D.5856,
> 0B, 0B, 0B);
>                     }
> 
> The _data field of D.5856 is the result of the call to 'get_par_data_ptr'
> not the procedure pointer itself. The result is:
> class(modelpar_data_t), pointer :: ptr and the formal argument is:
> class(modelpar_data_t), intent(in), pointer, optional :: mass_data
> 
> So the call is perfectly proper. The trouble is that the attributes of the
> proc_pointer result are not being used.
> 
> I am about to start a gdb session :-)
> 
> Paul

Cool, very good, I'm never really sure which max. size a reproducer is still
useful for you. Then I stop reducing further now.

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (27 preceding siblings ...)
  2021-03-19  9:53 ` juergen.reuter at desy dot de
@ 2021-03-21 18:53 ` pault at gcc dot gnu.org
  2021-03-21 22:25 ` juergen.reuter at desy dot de
                   ` (9 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: pault at gcc dot gnu.org @ 2021-03-21 18:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #30 from Paul Thomas <pault at gcc dot gnu.org> ---
Created attachment 50442
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50442&action=edit
Patch that "fixes" all versions of the problem.. so far :-)

Hi Juergen,

I think that this one does the job... it is even correct and regtests OK;-)

I found that the gdb session was a miserable afair that didn't help at all
because of the change in dwarf versions. I would up reducing the testcase to
what you will find below. Please excuse my mutilation of Whizard!

The chunk of whizard that you provided throws up all sorts of memories. In the
1970's I used to go up to Caltech every Wednesday for Feynman and Gell-mann
seminars. I was around for the earliest days of partons and the realisation
that quarks might even be real.

Paul

module model_data
  type :: model_data_t
     type(modelpar_real_t), dimension(:), pointer :: par_real => null ()
   contains
     procedure :: get_par_data_ptr => model_data_get_par_data_ptr_name
     procedure :: set => field_data_set
  end type model_data_t

  type :: modelpar_real_t
     character (4) :: name
     real(4) :: value
  end type modelpar_real_t

  type(modelpar_real_t), target :: names(2) = [modelpar_real_t("foo ", 1), &
                                               modelpar_real_t("bar ", 2)]

contains

  function model_data_get_par_data_ptr_name (model, name) result (ptr)
    class(model_data_t), intent(in) :: model
    character (*), intent(in) :: name
    class(modelpar_real_t), pointer :: ptr
    integer :: i
    ptr => null ()
    do i = 1, size (model%par_real)
       if (model%par_real(i)%name == name) ptr => model%par_real(i)
    end do
  end function model_data_get_par_data_ptr_name

  subroutine field_data_set (this, ptr)
    class(model_data_t), intent(inout) :: this
    class(modelpar_real_t), intent(in), pointer :: ptr
    if (associated (ptr)) then
      print *, "'ptr%value' = ", ptr%value
    else
      print *, "'ptr' not associated in 'field_data_set'"
    end if
  end subroutine

end module model_data

  use model_data
  class(model_data_t), allocatable :: model
  class(modelpar_real_t), pointer :: name_ptr

  allocate (model_data_t :: model)
  model%par_real => names

!  name_ptr => model%get_par_data_ptr ("bar ")
!  call field_data_set (model, name_ptr)
!  call field_data_set (model, model%get_par_data_ptr ("bar "))
  call model%set (model%get_par_data_ptr ("bar "))
  call model%set (model%get_par_data_ptr ("tea "))
end

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (28 preceding siblings ...)
  2021-03-21 18:53 ` pault at gcc dot gnu.org
@ 2021-03-21 22:25 ` juergen.reuter at desy dot de
  2021-03-23 19:31 ` juergen.reuter at desy dot de
                   ` (8 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-21 22:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #31 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Paul Thomas from comment #30)
> Created attachment 50442 [details]
> Patch that "fixes" all versions of the problem.. so far :-)
> 
> Hi Juergen,
> 
> I think that this one does the job... it is even correct and regtests OK;-)
> 
> I found that the gdb session was a miserable afair that didn't help at all
> because of the change in dwarf versions. I would up reducing the testcase to
> what you will find below. Please excuse my mutilation of Whizard!
> 
> The chunk of whizard that you provided throws up all sorts of memories. In
> the 1970's I used to go up to Caltech every Wednesday for Feynman and
> Gell-mann seminars. I was around for the earliest days of partons and the
> realisation that quarks might even be real.
> 
> Paul
> 

Hi Paul,
that's a much nicer reproducer, congrats! And thanks for fixing this regression
so timely. I confirm that all our tests work again with this fix. I guess the
compilation and running with default flags (-g -O2) is not affected by this
fix? But I will test once the fix is committed. 
Nice to hear that you had such a fun time at Calteach. I was never there
unfortunately, but visited Stanford U. and SLAC a lot. And I was lucky to meet
Gell-Mann as well, 2008 in Aspen at the physics center. 
To me the fix looks good to go, when it is pushed I will recompile gcc and run
our code with all different combinations again.
All the best,
   JRR

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (29 preceding siblings ...)
  2021-03-21 22:25 ` juergen.reuter at desy dot de
@ 2021-03-23 19:31 ` juergen.reuter at desy dot de
  2021-03-24  6:31 ` pault at gcc dot gnu.org
                   ` (7 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-23 19:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #32 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Ready for merge?

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (30 preceding siblings ...)
  2021-03-23 19:31 ` juergen.reuter at desy dot de
@ 2021-03-24  6:31 ` pault at gcc dot gnu.org
  2021-03-24  8:25 ` juergen.reuter at desy dot de
                   ` (6 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: pault at gcc dot gnu.org @ 2021-03-24  6:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #33 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Jürgen Reuter from comment #32)
> Ready for merge?

Hi Juergen,

Daytime work intervened. I will submit to the list today.

Thanks for all your support BTW.

Paul

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (31 preceding siblings ...)
  2021-03-24  6:31 ` pault at gcc dot gnu.org
@ 2021-03-24  8:25 ` juergen.reuter at desy dot de
  2021-03-28 18:40 ` cvs-commit at gcc dot gnu.org
                   ` (5 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-24  8:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #34 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Paul Thomas from comment #33)
> (In reply to Jürgen Reuter from comment #32)
> > Ready for merge?
> 
> Hi Juergen,
> 
> Daytime work intervened. I will submit to the list today.
> 

Great!


> Thanks for all your support BTW.
> 

On the contrary, thanks for your continuous great support!

> Paul

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (32 preceding siblings ...)
  2021-03-24  8:25 ` juergen.reuter at desy dot de
@ 2021-03-28 18:40 ` cvs-commit at gcc dot gnu.org
  2021-03-29 10:31 ` juergen.reuter at desy dot de
                   ` (4 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-28 18:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #35 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

https://gcc.gnu.org/g:297363774e6a5dca2f46a85ab086f1d9e59431ac

commit r11-7880-g297363774e6a5dca2f46a85ab086f1d9e59431ac
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Sun Mar 28 16:48:27 2021 +0100

    Fortran: Fix problem with runtime pointer check [PR99602].

    2021-03-28  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran/ChangeLog

            PR fortran/99602
            * trans-expr.c (gfc_conv_procedure_call): Use the _data attrs
            for class expressions and detect proc pointer evaluations by
            the non-null actual argument list.

    gcc/testsuite/ChangeLog

            PR fortran/99602
            * gfortran.dg/pr99602.f90: New test.
            * gfortran.dg/pr99602a.f90: New test.
            * gfortran.dg/pr99602b.f90: New test.
            * gfortran.dg/pr99602c.f90: New test.
            * gfortran.dg/pr99602d.f90: New test.

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

* [Bug fortran/99602] [11 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (33 preceding siblings ...)
  2021-03-28 18:40 ` cvs-commit at gcc dot gnu.org
@ 2021-03-29 10:31 ` juergen.reuter at desy dot de
  2021-04-27 11:40 ` [Bug fortran/99602] [11/12 " jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-29 10:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #36 from Jürgen Reuter <juergen.reuter at desy dot de> ---
I can confirm that the push by Paul, 297363774e6a5dca2f46a85ab086f1d9e59431ac,
does fix all compilations and tests in our code and test suite.

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

* [Bug fortran/99602] [11/12 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (34 preceding siblings ...)
  2021-03-29 10:31 ` juergen.reuter at desy dot de
@ 2021-04-27 11:40 ` jakub at gcc dot gnu.org
  2021-05-04 12:32 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-04-27 11:40 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|11.0                        |11.2

--- Comment #37 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 11.1 has been released, retargeting bugs to GCC 11.2.

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

* [Bug fortran/99602] [11/12 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (35 preceding siblings ...)
  2021-04-27 11:40 ` [Bug fortran/99602] [11/12 " jakub at gcc dot gnu.org
@ 2021-05-04 12:32 ` rguenth at gcc dot gnu.org
  2021-07-28  7:06 ` rguenth at gcc dot gnu.org
  2021-07-28 13:01 ` pault at gcc dot gnu.org
  38 siblings, 0 replies; 40+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-04 12:32 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

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

* [Bug fortran/99602] [11/12 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (36 preceding siblings ...)
  2021-05-04 12:32 ` rguenth at gcc dot gnu.org
@ 2021-07-28  7:06 ` rguenth at gcc dot gnu.org
  2021-07-28 13:01 ` pault at gcc dot gnu.org
  38 siblings, 0 replies; 40+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-07-28  7:06 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|11.2                        |11.3

--- Comment #38 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11.2 is being released, retargeting bugs to GCC 11.3

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

* [Bug fortran/99602] [11/12 regression] runtime error: pointer actual argument not associated
  2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
                   ` (37 preceding siblings ...)
  2021-07-28  7:06 ` rguenth at gcc dot gnu.org
@ 2021-07-28 13:01 ` pault at gcc dot gnu.org
  38 siblings, 0 replies; 40+ messages in thread
From: pault at gcc dot gnu.org @ 2021-07-28 13:01 UTC (permalink / raw)
  To: gcc-bugs

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

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #39 from Paul Thomas <pault at gcc dot gnu.org> ---
This should have been closed since it is fixed in 11-branch.

Sorry about the delay.

Paul

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

end of thread, other threads:[~2021-07-28 13:01 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 14:24 [Bug fortran/99602] New: [11 regression] runtime error: pointer actual argument not associated juergen.reuter at desy dot de
2021-03-15 14:39 ` [Bug fortran/99602] " juergen.reuter at desy dot de
2021-03-15 23:01 ` juergen.reuter at desy dot de
2021-03-15 23:07 ` juergen.reuter at desy dot de
2021-03-16  7:30 ` juergen.reuter at desy dot de
2021-03-16  7:31 ` juergen.reuter at desy dot de
2021-03-16  7:32 ` juergen.reuter at desy dot de
2021-03-16  7:33 ` juergen.reuter at desy dot de
2021-03-16  8:14 ` rguenth at gcc dot gnu.org
2021-03-16  8:31 ` pault at gcc dot gnu.org
2021-03-16  8:43 ` juergen.reuter at desy dot de
2021-03-16 10:29 ` juergen.reuter at desy dot de
2021-03-16 11:50 ` pault at gcc dot gnu.org
2021-03-16 13:45 ` pault at gcc dot gnu.org
2021-03-16 13:47 ` juergen.reuter at desy dot de
2021-03-16 20:29 ` anlauf at gcc dot gnu.org
2021-03-17 13:51 ` juergen.reuter at desy dot de
2021-03-17 17:57 ` anlauf at gcc dot gnu.org
2021-03-18  7:26 ` paul.richard.thomas at gmail dot com
2021-03-18 20:58 ` juergen.reuter at desy dot de
2021-03-18 23:03 ` juergen.reuter at desy dot de
2021-03-18 23:54 ` juergen.reuter at desy dot de
2021-03-19  1:20 ` juergen.reuter at desy dot de
2021-03-19  2:23 ` juergen.reuter at desy dot de
2021-03-19  2:24 ` juergen.reuter at desy dot de
2021-03-19  7:37 ` juergen.reuter at desy dot de
2021-03-19  8:16 ` juergen.reuter at desy dot de
2021-03-19  9:35 ` pault at gcc dot gnu.org
2021-03-19  9:53 ` juergen.reuter at desy dot de
2021-03-21 18:53 ` pault at gcc dot gnu.org
2021-03-21 22:25 ` juergen.reuter at desy dot de
2021-03-23 19:31 ` juergen.reuter at desy dot de
2021-03-24  6:31 ` pault at gcc dot gnu.org
2021-03-24  8:25 ` juergen.reuter at desy dot de
2021-03-28 18:40 ` cvs-commit at gcc dot gnu.org
2021-03-29 10:31 ` juergen.reuter at desy dot de
2021-04-27 11:40 ` [Bug fortran/99602] [11/12 " jakub at gcc dot gnu.org
2021-05-04 12:32 ` rguenth at gcc dot gnu.org
2021-07-28  7:06 ` rguenth at gcc dot gnu.org
2021-07-28 13:01 ` pault 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).