From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31863 invoked by alias); 29 Jun 2015 14:23:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31795 invoked by uid 48); 29 Jun 2015 14:23:10 -0000 From: "vladimir.fuka at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66695] New: [4.9, 5 Regression] ICE with binding-name equal to overloaded name of use-associated procedure Date: Mon, 29 Jun 2015 14:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vladimir.fuka at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-06/txt/msg03295.txt.bz2 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 for instructions.