Automatic allocation of string in recursive function unexpected result [issue with `ifx` and bug in `gfortran` and `nvfortran`]

J3 Interp F08/0089 seems relevant, https://j3-fortran.org/doc/year/17/17-006.txt

1 Like

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.

1 Like

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.

1 Like

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).

1 Like