Bug report for ifort 17.0: elemental function result According to f2003 constraint C1279 and f2008 corrigenda constraint C1290b but not the original version of f2008, an elemental function result may not have a type parameter that depends on the value of a dummy argument in the way that my test program uses. If this were allowed, the print statement in the program would attempt to construct a character array whose elements were of different lengths. "C1290b In the specification-expr that specifies a type parameter value of the result of an elemental function, an object designator with a dummy argument of the function as the base object shall appear only as the subject of a specification inquiry, and that specification inquiry shall not depend on a property that is deferred." The program: module elemfunc ! Valid f2003? f2008? implicit none contains pure elemental function rep(n, s) integer,intent(in) :: n character(*),intent(in):: s character(n*len(s)):: rep rep = repeat(s,n) end function rep end module elemfunc program testelem use elemfunc,only:rep implicit none print *,'"',rep([2,3],'?'),'"' end program testelem What ifort did with it: cayley[~/Jfh] % ifort -V testelem2.f90; ./a.out Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.0.098 Build 20160721 Copyright (C) 1985-2016 Intel Corporation. All rights reserved. FOR NON-COMMERCIAL USE ONLY Intel(R) Fortran 17.0-1589 GNU ld (GNU Binutils) 2.29.1 "" cayley[~/Jfh] %