I am getting critical errors with weight 100 for allocating an array with zero size.
example:
allocatable a(:) allocate(a(0)) end
P1: Critical: Insufficient memory zeroarray.f90(2): error #12138: size of allocated memory (0 bytes) is smaller than required to hold the object "A[]" (4 bytes) Problem P1.1: Insufficient memory: New zeroarray.f90(2): error #12138: size of allocated memory (0 bytes) is smaller than required to hold the object "A[]" (4 bytes) X1: Allocation site: /home/lada/f/testy/intel/zeroarray.f90(2): Function MAIN_ Code snippet: 1 allocatable a(:) >2 allocate(a(0)) 3 end 4 Stack (1 of 1 instance(s)) >Unknown!MAIN_ - /home/lada/f/testy/intel/zeroarray.f90:2
I believe this usage of allocatable arrays is completely legitimate.




