https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53357
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2014-07-20 Ever confirmed|0 |1 --- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Compiling the first test in comment 0 gives an error with 4.7 up to trunk (4.10) Error: Allocating str at (1) with type-spec requires the same character-length parameter as in the declaration even if i=3 or with the following code integer :: i i = 3 call sub(i) end subroutine sub(i) character(len=i), allocatable :: str allocate (character(len=3) :: str) end This does not seem correct (unless I am missing something).