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

Zero length array constructors

IanH
Honored Contributor III
392 Views
  IMPLICIT NONE
  TYPE t
  END TYPE t
  TYPE(t), PARAMETER :: array(0) = 
END

 

>ifort "2014-08-27 ZeroLength.f90"
Intel(R) Visual Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.0.108 Build 20140726
Copyright (C) 1985-2014 Intel Corporation.  All rights reserved.

2014-08-27 ZeroLength.f90(4): error #5082: Syntax error, found '::' when expecting one of: , (/ : ]
  TYPE(t), PARAMETER :: array(0) = 
-------------------------------------^
2014-08-27 ZeroLength.f90(4): error #6592: This symbol must be a defined parameter, an enumerator, or an argument of an
inquiry function that evaluates to a compile-time constant.   
  TYPE(t), PARAMETER :: array(0) = 
------------------------------------^
compilation aborted for 2014-08-27 ZeroLength.f90 (code 1)

 

:(

0 Kudos
1 Reply
Steven_L_Intel1
Employee
392 Views

Hmm - I thought we had fixed that one a while ago. I'll check.

0 Kudos
Reply