------- Comment #5 from paul dot richard dot thomas at cea dot fr 2006-06-23 07:04 ------- It should be noted that encasing the two subroutines in a module produces the correct error
In file pr22571.f90:15 call a(q) 1 Error: Type/rank mismatch in argument 'p' at (1) The problem lies in the absence of global actual/formal argument checking; where there is an explicit interface, all works correctly. Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22571