[Bug fortran/66695] New: [4.9, 5 Regression] ICE with binding-name equal to overloaded name of use-associated procedure

vladimir.fuka at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jun 29 14:23:00 GMT 2015


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

            Bug ID: 66695
           Summary: [4.9, 5 Regression] ICE with binding-name equal to
                    overloaded name of use-associated procedure
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vladimir.fuka at gmail dot com
  Target Milestone: ---

The following code compiles with 4.8.5, and 4.9.0 and causes ICE with 4.9.2 and
5.1.1


module mod
  implicit none
contains
    integer function F()
    end function
end module

module mod_C
  use mod
  implicit none
contains
  subroutine s()  bind(C, name="f")
    integer :: x
      x = F()
  end subroutine
end module




> gfortran-5 -v -c binding_ice.f90 
Using built-in specs.
COLLECT_GCC=gfortran-5
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada,go
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/5
--enable-ssp --disable-libssp --disable-libvtv --enable-libmpx --disable-plugin
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--with-default-libstdcxx-abi=c++98 --enable-version-specific-runtime-libs
--enable-linker-build-id --enable-linux-futex --program-suffix=-5
--without-system-libunwind --enable-multilib --with-arch-32=i586
--with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 5.1.1 20150622 [gcc-5-branch revision 224722] (SUSE Linux) 
COLLECT_GCC_OPTIONS='-v' '-c' '-mtune=generic' '-march=x86-64'
 /usr/lib64/gcc/x86_64-suse-linux/5/f951 binding_ice.f90 -quiet -dumpbase
binding_ice.f90 -mtune=generic -march=x86-64 -auxbase binding_ice -version
-fintrinsic-modules-path /usr/lib64/gcc/x86_64-suse-linux/5/finclude -o
/tmp/ccpIdj5s.s
GNU Fortran (SUSE Linux) version 5.1.1 20150622 [gcc-5-branch revision 224722]
(x86_64-suse-linux)
        compiled by GNU C version 5.1.1 20150622 [gcc-5-branch revision
224722], GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran2008 (SUSE Linux) version 5.1.1 20150622 [gcc-5-branch revision
224722] (x86_64-suse-linux)
        compiled by GNU C version 5.1.1 20150622 [gcc-5-branch revision
224722], GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
binding_ice.f90:15:0:

       x = F()
 1
internal compiler error: in fold_convert_loc, at fold-const.c:2235
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.



More information about the Gcc-bugs mailing list