A bug in gfortran
based on what I see in the standard. Please file a request at GCC Bugzilla. Or better yet, look to volunteer toward GCC/gfortran bug resolution taskforce and encourage others and assemble a team globally for the same - gfortran needs that, urgently.
4 Likes