Bug#396292: gfortran-4.1: ICE when mistyping NULL() as NULL
Package: gfortran-4.1
Version: 4.1.1-17
Severity: normal
The following is a reduced testcase which triggers ICE. I think it's
invalid code, but not very sure.
$ gfortran --version
GNU Fortran 95 (GCC) 4.1.2 20061020 (prerelease) (Debian 4.1.1-17)
Copyright (C) 2006 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
$ cat a.f90
PROGRAM test
implicit none
intrinsic NULL
! calling an external subroutine with an null array argument, but wrote NULL
! instead of NULL()
call ext_f( NULL )
END PROGRAM test
$
$ gfortran -c a.f90
a.f90: In function 'MAIN__':
a.f90:1: internal compiler error: in gfc_get_extern_function_decl, at fortran/trans-decl.c:1040
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
Ming
2006.10.30
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-2-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages gfortran-4.1 depends on:
ii gcc-4.1 4.1.1-17 The GNU C compiler
ii gcc-4.1-base 4.1.1-17 The GNU Compiler Collection (base
ii libc6 2.3.6.ds1-7 GNU C Library: Shared libraries
ii libc6-dev 2.3.6.ds1-7 GNU C Library: Development Librari
ii libgfortran1-dev 4.1.1-17 GNU Fortran library development
ii libgmp3c2 2:4.2.1+dfsg-4 Multiprecision arithmetic library
ii libmpfr1 2.2.0.dfsg.1-8 multiple precision floating-point
gfortran-4.1 recommends no packages.
-- no debconf information
Reply to: