http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56758
Bug #: 56758 Summary: Missing bounds check for explict-size arrays (+ character scalar storage association) Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org NAG detects it and prints: Actual argument for dummy array X too small - 3 elements instead of 5 call foo(["a","b","c"], 5) call foo("abc", 5) contains subroutine foo(x,n) character :: x(n) end subroutine end For constant length, the compiler already does so at compile time: Warning: Actual argument contains too few elements for dummy argument 'x' (3/5)