Open ivan-pi opened 4 years ago
@ivan-pi great catch. I am hoping to port most of fortran-utils to stdlib. This amos is used for some stuff, we'll have to decide what to do about it. This might not be hard to fix.
The -Wno-error=do-subscript
flag is not available in older versions of gfortran (e.g. version 7.5) so this is not a solution anyways.
With gfortran-9 (gcc version 9.2.1 20191102 ) I get the following error upon compilation
The error can be silenced by adding
-Wno-error=do-subscript
to the CMakeLists.txt in the src/legacy/amos folder.