User account creation filtered due to spam.

Bug 66695 - [5/6/7/8 Regression] [F03] ICE with binding-name equal to the name of a use-associated procedure
Summary: [5/6/7/8 Regression] [F03] ICE with binding-name equal to the name of a use-a...
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 5.1.1
: P4 normal
Target Milestone: 5.5
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2015-06-29 14:23 UTC by Vladimir Fuka
Modified: 2016-08-03 11:52 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2015-07-06 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Fuka 2015-06-29 14:23:08 UTC
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.
Comment 1 Vladimir Fuka 2015-07-06 16:02:48 UTC
Anyone can confirm this behaviour?
Comment 2 Dominique d'Humieres 2015-07-06 16:22:53 UTC
> Anyone can confirm this behaviour?

Indeed! It appeared between revisions r199034 (2013-05-17, OK) and r199221 (2013-05-22, ICE).
Comment 3 Richard Biener 2015-10-16 08:23:34 UTC
Still broken.
Comment 4 Richard Biener 2016-08-03 11:49:00 UTC
GCC 4.9 branch is being closed