public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24557]  New: ICE: PRINTing function result of size depending on assumed length CHARACTER dummy
@ 2005-10-27 11:16 eedelman at gcc dot gnu dot org
  2005-10-27 22:00 ` [Bug fortran/24557] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2005-10-27 11:16 UTC (permalink / raw)
  To: gcc-bugs

kl-nrb:~$ cat buggy.f90 
program main
  implicit none
  character(4) :: a(2)
  print *,fun(a)
contains
  function fun(arg)
    character(len=*), intent(in) :: arg(:)
    integer :: fun(size(arg))
    fun = 5
  end function fun
end pkl-nrb:~$ gfortran41 buggy.f90 
buggy.f90:4: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

If I change the length of 'arg' to a constant it works, and if I assign the
function result to a temporary variable before I print, it also works.


-- 
           Summary: ICE: PRINTing function result of size depending on
                    assumed length CHARACTER dummy
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eedelman at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-03-07  2:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-27 11:16 [Bug fortran/24557] New: ICE: PRINTing function result of size depending on assumed length CHARACTER dummy eedelman at gcc dot gnu dot org
2005-10-27 22:00 ` [Bug fortran/24557] " pinskia at gcc dot gnu dot org
2006-01-25 14:52 ` paul dot richard dot thomas at cea dot fr
2006-02-06 13:51 ` pinskia at gcc dot gnu dot org
2006-02-16  7:04 ` pault at gcc dot gnu dot org
2006-02-16  7:07 ` pault at gcc dot gnu dot org
2006-03-07  0:07 ` pault at gcc dot gnu dot org
2006-03-07  2:24 ` pinskia 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).