https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93925
--- Comment #5 from martin <mscfd at gmx dot net> --- Sorry for this invalid test case, obviously I did reduce too much. The three attached variations should hopefully all be conforming to the standard and still produce the same error. Please reopen if the testcases are ok now. The attached classStar_map2 is a slight variation on the original code, and just uses an "integer, pointer" variable for x (as is roughly the context where I originally encountered the bug). classStar_map3 has no target attribute but uses "class(*), pointer" for variable as well as argument x. classStar_map4 is a bit further reduced. It has no target nor pointer attribute for x, but does not use the value of x, just returns y=>null() and y=987456.