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

--- Comment #9 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Jerry DeLisle from comment #8)
> The simple patch does indeed fix the ICE at compile time.  It also
> regression tests cleanly.
> 
> I am studying the results of running this test case to be sure it makes
> sense. The DTIO procedure in the example is not getting invoked from my
> first look.

Indeed it was not being invoked since the line:

   print *, 'n=',n,automatic(n)%x

Completely resolves the value of x.

If instead one uses:

   print *, 'n=',n,automatic

The DTIO procedure is invoked as expected. I will commit this one under simple
and obvious rule shortly with a test case.

Reply via email to