A function that returns a pointer to a polymorphic variable can be used as the selector in a SELECT TYPE construct. If that function is type-bound, the new 13.0 compiler fails to recognize that the function result is polymorphic and incorrectly issues an error. I've attached a small example that illustrates the bug.
-Neil



