fortran: Add ASSOCIATE tests for attribute inheritance and TBP selectors

An audit of the ASSOCIATE coverage in gfortran.dg against F2023:11.1.3 found 
three properties with no test at all.  None of these is a bug; the tests 
document behaviour that is already correct so that it cannot regress silently.

VOLATILE and ASYNCHRONOUS inheritance (11.1.3.3 paragraph 4) had no coverage. 
Corank and cobound inheritance (paragraph 2) had none either: lcobound and 
ubound were never applied to an associate name anywhere in gfortran.dg.  A 
type-bound procedure call used as the selector was covered only for a 
parameterized derived type result, so the ordinary derived type case was 
working 
by side effect alone; it fails on the GCC 15 branch and earlier.

gcc/testsuite/ChangeLog:

* gfortran.dg/associate_86.f90: New test.
* gfortran.dg/associate_87.f90: New test.
* gfortran.dg/associate_88.f90: New test.

The patch has been sitting in one of my worktrees for a while. I can submit it 
or push it. At the same time I don't want to add to the testsuite run length of 
time.

After I knock out most of the patches assigned to me in bugzilla

Reply via email to