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

kargls at comcast dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargls at comcast dot net

--- Comment #2 from kargls at comcast dot net ---
(In reply to Jerry DeLisle from comment #1)
> Works for me on latest master.
> 
> $ gfc seggy.f90 
> jerry@quasar:~/dev/test/tryit$ ./a.out 
>  MRE: Calling ad_init subroutine...
>  MRE: ad_init call finished successfully.
>  MRE: n1%val =   7.00000000    
> 
> Also works with 15.2.1 just released so see if you can update your gfortran
> and try again.

You need to compile with -O or higher optimization.  Also,
the code is set up to use the subroutine example, which 
works.  Make sure you use the function example.

-- 
steve

Reply via email to