https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82511
Bug ID: 82511 Summary: ICE Bad IO basetype (12) on attempted read or write of entire DEC structure Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: James.A.Paget at aero dot org Target Milestone: --- Created attachment 42339 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42339&action=edit The program that, when compiled, illustrates the bug. Minimal code that demonstrates the problem is in attached file bugbug.f. Command line used to compile: gfortran -c -Wall -Wextra -fdec-structure -save-temps bugbug.f -o bugbug.o Output from above command line: f951.exe: internal compiler error: Bad IO basetype (12) libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. Output of gcc -v: Built by Equation Solution <http://www.Equation.com>. Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=c:/mingw8/bin/../libexec/gcc/x86_64-w64- mingw32/8.0.0/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../gcc-8-20171008-mingw/configure --host=x86_64-w64- mingw32 --build=x86_64-unknown-linux-gnu --target=x86_64-w64-mingw32 -- prefix=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/gcc/8- 20171008 --with-sysroot=/home/gfortran/gcc- home/binary/mingw32/cross/x86_64/gcc/8-20170709 --with- gcc --with-gnu-ld --with-gnu-as --with-ld64=no --with- gmp=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/gmp --with- mpfr=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/mpfr --with- mpc=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/mpc --with- cloog=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/cloog --with- diagnostics-color=auto-if-env --enable-cloog-backend=isl --enable- targets=i686-w64-mingw32,x86_64-w64-mingw32 --enable-lto --enable-languages=c,c++,fortran --enable-threads=win32 --enable-static --enable-shared=lto-plugin --enable-plugins --enable-ld=yes --enable-libquadmath --enable-libquadmath-support --enable-libgomp --disable-checking --disable-nls --disable-tls --disable-win32-registry Thread model: win32 gcc version 8.0.0 20171008 (experimental) (GCC) There are no preprocessor (*.i*) files generated. System type: PC, Windows 7 Professional 64-bit running 64-bit MinGW. This bug also occurs in gfortran 7.1.0. The code is admittedly incorrect (I should be reading into "bucket.c16" instead of "bucket"), but instead of an ICE I should get a diagnostic with the location of the error.