https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91785
G. Steinmetz <gs...@t-online.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code --- Comment #1 from G. Steinmetz <gs...@t-online.de> --- $ cat z2.f90 # for reference program p complex :: a(*) real :: b(2) b = aimag(a) end $ gfortran-10-20190915 -c z2.f90 z2.f90:2:18: 2 | complex :: a(*) | 1 Error: Assumed size array at (1) must be a dummy argument z2.f90:4:13: 4 | b = aimag(a) | 1 Error: The upper bound in the last dimension must appear in the reference to the assumed size array 'a' at (1)