public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45187] New: ICE with CRAY pointer in module depending on variable name
@ 2010-08-05 3:15 billy dot baker at cox dot net
2010-08-05 7:05 ` [Bug fortran/45187] " tkoenig at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: billy dot baker at cox dot net @ 2010-08-05 3:15 UTC (permalink / raw)
To: gcc-bugs
The following generates an ICE with gfortran 4.3.5, 4.4.3, 4.4.5, and 4.5.1.
Version 4.4.3 was checked on Ubuntu 10.04. The rest were checked on 10.10.
foo_fail.f90:
module foo
implicit none
real :: a
pointer(c_a, a)
end module foo
gfortran -fcray-pointer -c foo_fail.f90
f951: internal compiler error: backend decl for module variable c_a already
exists
However, if a is changed to x (or any letter which results in the variable
being alphabetically after the cray pointer name), the file compiles fine.
foo_works.f90
module foo
implicit none
real :: x
pointer(c_x, x)
end module foo
gfortran -fcray-pointer -c foo_works.f90
In both cases, a .mod is generated. If module is changed to subroutine, both
cases compile fine.
gcc -v:
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.4.4-8ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic
--enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu
--target=i686-linux-gnu
Thread model: posix
gcc version 4.4.5 20100728 (prerelease) (Ubuntu/Linaro 4.4.4-8ubuntu1)
--
Summary: ICE with CRAY pointer in module depending on variable
name
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: billy dot baker at cox dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45187
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-05 7:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-05 3:15 [Bug fortran/45187] New: ICE with CRAY pointer in module depending on variable name billy dot baker at cox dot net
2010-08-05 7:05 ` [Bug fortran/45187] " tkoenig at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).