I found that I cannot initialize an array inside of a BLOCK statement using Intel fortran 22.214.171.124. Is this an unsupported feature, or a bug? Here's the minimal code that reproduces the error:
program testblock implicit none block integer, dimension(4) :: array = (/1,-1,1,-1/) end block end program testblock
And here's the error message I receive:
Intel(R) Visual Fortran Compiler for applications running on IA-32, Version 126.96.36.199 Build 20160415 Copyright (C) 1985-2016 Intel Corporation. All rights reserved. 101004_2045 catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be explicit cause of this error. compilation aborted for testblock.f90 (code 1)
I can easily fix it by doing this instead:
program testblock implicit none block integer, dimension(4) :: array array = (/1,-1,1,-1/) end block end program testblock
But it took me a while to track down that issue and I thought others may be curious.