J3 Interp F08/0089 seems relevant, https://j3-fortran.org/doc/year/17/17-006.txt
ifx: the error message looks like a bug. We’ll open up a bug report but we also want to look at the Language compliance of these examples.
There have been issues with pointer-valued operators, that required interps F08/0075 and F08/0076 (which passed, https://j3-fortran.org/doc/year/17/17-020.txt and https://wg5-fortran.org/N1951-N2000/N1990.txt) and previously mentioned F08/0089 (which seems to still be active).
You might want to avoid using such fragile features.
F08/0089 seems to NOT be active, contrary to my earlier claim. This interp regarded an example that was alleged to have different behaviour under F2003 and F2008. The interp was resolved by noting that the example was never conforming to F2003 in the first place (and remained non-conforming under F2008 and forward).