[Bug fortran/81367] [5/6 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1086

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Tue Jul 11 10:25:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81367

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
AFAICT this is fixed in 5.4.1 and 6.4.0:

% gfc5 pr81367.f90
pr81367.f90:5:18:

     character(len=f)::fname
                  1
Error: Scalar INTEGER expression expected at (1)
% gfc5 -v
Using built-in specs.
COLLECT_GCC=gfc5
COLLECT_LTO_WRAPPER=/opt/gcc/gcc5wr/libexec/gcc/x86_64-apple-darwin16.6.0/5.4.1/lto-wrapper
Target: x86_64-apple-darwin16.6.0
Configured with: ../5_work/configure --prefix=/opt/gcc/gcc5wr
--enable-languages=c,c++,fortran,objc,obj-c++,ada,java,lto
--with-gmp=/opt/mp-new --with-system-zlib --with-isl=/opt/mp-new --enable-lto
--enable-plugin
Thread model: posix
gcc version 5.4.1 20170604 [5 branch revision 248859p3] (GCC) 

% gfortran-fsf-6 pr81367.f90
pr81367.f90:5:18:

     character(len=f)::fname
                  1
Error: Scalar INTEGER expression expected at (1)
% gfortran-fsf-6 -v
Using built-in specs.
COLLECT_GCC=gfortran-fsf-6
COLLECT_LTO_WRAPPER=/sw64/lib/gcc6/libexec/gcc/x86_64-apple-darwin16.6.0/6.4.0/lto-wrapper
Target: x86_64-apple-darwin16.6.0
Configured with: ../gcc-6.4.0/configure --prefix=/sw64 --prefix=/sw64/lib/gcc6
--mandir=/sw64/share/man --infodir=/sw64/lib/gcc6/info
--enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw64
--with-libiconv-prefix=/sw64 --with-isl=/sw64 --with-mpc=/sw64
--with-system-zlib --program-suffix=-fsf-6
Thread model: posix
gcc version 6.4.0 (GCC)


More information about the Gcc-bugs mailing list