https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104819
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> --- (In reply to Tobias Burnus from comment #0) > I believe this should be rejected as the rank is not known without a MOLD. That's now an interpretation request: https://j3-fortran.org/doc/year/22/22-146.txt (Note: might see updates, such as 22-146r1.txt or ...) * * * In the email thread, also an issue related to C_SIZEOF was mentioned: https://j3-fortran.org/doc/year/22/22-101r1.txt Example from the IR, see IR for details about the validity. program p use iso_c_binding implicit none integer(c_int), pointer :: int_s integer(c_int), pointer :: int_a(:) print *, c_sizeof (c_null_ptr) ! (A) print *, c_sizeof (null ()) ! (B) print *, c_sizeof (null (int_s)) ! (C) print *, c_sizeof (null (int_a)) ! (D) end