public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31720]  New: ICE for module function returning automatic array
@ 2007-04-26 22:26 terry at chem dot gu dot se
  2007-04-27  5:58 ` [Bug fortran/31720] " burnus at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: terry at chem dot gu dot se @ 2007-04-26 22:26 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1684 bytes --]

[tjf@fkpc167 Bug]$ cat acmod.f90 
module AMod
implicit none
integer::i
contains
function f() result (s)
real(kind=8),dimension(i)::s
end function f
end module
[tjf@fkpc167 Bug]$ gfortran -c acmod.f90 
[tjf@fkpc167 Bug]$ cat nnh.f90 
program fred
use AMod
implicit none
write(*,*)f()
end
[tjf@fkpc167 Bug]$ gfortran -v -c nnh.f90 
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --disable-multilib --enable-languages=fortran
Thread model: posix
gcc version 4.2.0 20070228 (prerelease)
 /usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.2.0/f951 nnh.f90 -quiet
-dumpbase nnh.f90 -mtune=generic -auxbase nnh -version -I
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.2.0/finclude -o /tmp/ccpjANyk.s
GNU F95 version 4.2.0 20070228 (prerelease) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.2.0 20070228 (prerelease).
GGC heuristics: --param ggc-min-expand=89 --param ggc-min-heapsize=112046
nnh.f90: In function ‘MAIN__’:
nnh.f90:1: internal compiler error: in gfc_get_symbol_decl, at
fortran/trans-decl.c:863
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


I have not tried this with a more up to date gfortran.


-- 
           Summary: ICE for module function returning automatic array
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: terry at chem dot gu dot se
  GCC host triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31720


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-05-04 17:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-26 22:26 [Bug fortran/31720] New: ICE for module function returning automatic array terry at chem dot gu dot se
2007-04-27  5:58 ` [Bug fortran/31720] " burnus at gcc dot gnu dot org
2007-05-04 15:49 ` [Bug fortran/31720] [4.1/4.2 only] " fxcoudert at gcc dot gnu dot org
2007-05-04 16:46 ` terry at chem dot gu dot se
2007-05-04 16:50 ` terry at chem dot gu dot se
2007-05-04 17:14 ` kargl at gcc dot gnu dot org
2007-05-04 17:35 ` terry at chem dot gu dot se
2007-05-04 17:35 ` terry at chem dot gu dot se
2007-05-04 17:37 ` terry at chem dot gu dot se

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).