Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Implied shape support?

Harald
Beginner
430 Views

Hello,

are there plans to support F2008 Implied shape parameters?

  integer, parameter :: a(*) = [ 1, 2 ]
end

produces:

% ifort -V ifort-implied-shape.f90 -stand f08
Intel(R) Fortran Compiler XE for applications running on IA-32, Version 14.0.1.106 Build 20131008
Copyright (C) 1985-2013 Intel Corporation.  All rights reserved.
FOR NON-COMMERCIAL USE ONLY

 Intel(R) Fortran 14.0-1599
ifort-implied-shape.f90(1): error #6364: The upper bound shall not be omitted in the last dimension of a reference to an assumed size array.  
  integer, parameter :: a(*) = [ 1, 2 ]
------------------------^
compilation aborted for ifort-implied-shape.f90 (code 1)

Thanks,

Harald

 

0 Kudos
1 Reply
Steven_L_Intel1
Employee
430 Views

It's on our list. My guess is that this would get done after we complete F2003 support.

0 Kudos
Reply