https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89574
Bug ID: 89574 Summary: internal compiler error: in conv_function_val, at fortran/trans-expr.c:3792 Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: dmitrievdv242 at yandex dot ru Target Milestone: --- Created attachment 45879 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45879&action=edit A source file to reproduce the bug The bug occurs when you have a module with some name (lets name it init) and it uses a module with an aliased subroutine or function with the same name (init) - see the attached source file. -The command command line that triggers the bug (with -v and -save-temps flags): gfortran-8 -v -save-temps -o test test.f90 -The the compiler output: Driving: gfortran-8 -v -save-temps -o test test.f90 -l gfortran -l m -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-8 COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/8/lto-wrapper Target: i686-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.1.0-5ubuntu1~16.04' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=i686-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu Thread model: posix gcc version 8.1.0 (Ubuntu 8.1.0-5ubuntu1~16.04) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-o' 'test' '-shared-libgcc' '-mtune=generic' '-march=i686' /usr/lib/gcc/i686-linux-gnu/8/f951 test.f90 -quiet -dumpbase test.f90 -mtune=generic -march=i686 -auxbase test -version -fintrinsic-modules-path /usr/lib/gcc/i686-linux-gnu/8/finclude -o test.s GNU Fortran (Ubuntu 8.1.0-5ubuntu1~16.04) version 8.1.0 (i686-linux-gnu) compiled by GNU C version 8.1.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran2008 (Ubuntu 8.1.0-5ubuntu1~16.04) version 8.1.0 (i686-linux-gnu) compiled by GNU C version 8.1.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 test.f90:23:0: call test_init internal compiler error: in conv_function_val, at fortran/trans-expr.c:3792 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions. The flag -save-temps doesn't produce any *.i files, only one *.s file.