Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Zero length array constructors

$
0
0
  IMPLICIT NONE
  TYPE t
  END TYPE t
  TYPE(t), PARAMETER :: array(0) = [t::]
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) = [t::]
-------------------------------------^
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.   [T]
  TYPE(t), PARAMETER :: array(0) = [t::]
------------------------------------^
compilation aborted for 2014-08-27 ZeroLength.f90 (code 1)

 

:(


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>