public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28237]  New: recursive fuction causes ICE
@ 2006-07-03 17:42 buraphalinuxserver at gmail dot com
  2006-07-03 18:27 ` [Bug fortran/28237] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: buraphalinuxserver at gmail dot com @ 2006-07-03 17:42 UTC (permalink / raw)
  To: gcc-bugs

recursive function causes ICE
--------------
program r
implicit none
integer :: i=5
print fact(i)
stop
end

recursive function fact(n) result(nfact)
implicit none
integer, intent(in) :: n
integer :: nfact
if (n>0) then
  nfact = n * fact(n-1)
else
  nfact = 1
end if
end function fact
end
--------------------
gfortran -vUsing built-in specs.
Target: i586-pc-linux-gnu
Configured with: /tmp/gcc-4.0.3/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --with-gnu-as --with-gnu-ld
--verbose --enable-languages=c,c++,f95 --disable-nls --disable-rpath
--build=i586-pc-linux-gnu --target=i586-pc-linux-gnu --host=i586-pc-linux-gnu
Thread model: posix
gcc version 4.0.3
--------------------
even if the code is invalid, it should not result in an ICE


-- 
           Summary: recursive fuction causes ICE
           Product: gcc
           Version: 4.0.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: buraphalinuxserver at gmail dot com
 GCC build triplet: i586-linux-gnu
  GCC host triplet: i586-linux-gnu
GCC target triplet: i586-linux-gnu


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


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

end of thread, other threads:[~2006-07-07  5:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-03 17:42 [Bug fortran/28237] New: recursive fuction causes ICE buraphalinuxserver at gmail dot com
2006-07-03 18:27 ` [Bug fortran/28237] " pinskia at gcc dot gnu dot org
2006-07-03 18:29 ` [Bug fortran/28237] print call() pinskia at gcc dot gnu dot org
2006-07-05  9:47 ` paul dot richard dot thomas at cea dot fr
2006-07-06 14:21 ` pault at gcc dot gnu dot org
2006-07-06 16:20 ` patchapp at dberlin dot org
2006-07-07  4:47 ` pault at gcc dot gnu dot org
2006-07-07  5:09 ` pault at gcc dot gnu dot org
2006-07-07  5:16 ` pault 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).