public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34848]  New: internal compiler error: Segmentation fault/optional arguments
@ 2008-01-18 11:57 krefson at googlemail dot com
  2008-01-18 12:05 ` [Bug fortran/34848] internal compiler error with optional argument of character type and array return type pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: krefson at googlemail dot com @ 2008-01-18 11:57 UTC (permalink / raw)
  To: gcc-bugs

Gfortran version 4.3.0 20080117 (experimental) [trunk revision 131592] (GCC)
gives an ICE on the following program.

$ gfortran -c ia.f90
ia.f90: In function 'doit':
ia.f90:12: internal compiler error: Segmentation fault

---------------------------------------------------------------------------
module krmod
contains
  function doit(genloc,vloc,scheme)
    implicit none
    character(len=6), optional,               intent(in)  :: genloc
    real,    optional, dimension(:), intent(in)  :: vloc
    character(len=2), optional,               intent(out) :: scheme
    real :: doit(100)
    !-------------------------------------------------------------------------!
    if(present(genloc)) then
       doit = tm_doit(genloc=genloc)
       if(present(scheme)) scheme = 'tm'
    else
       doit = tm_doit(vloc=vloc)
       if(present(scheme)) scheme = 'tm'
    endif
    return
  end function doit
  function tm_doit(genloc,vloc)
    implicit none
    character(len=6), optional,               intent(in)  :: genloc
    real,    optional, dimension(:), intent(in)  :: vloc
    real :: tm_doit(100)
    tm_doit = 1.0
  end function tm_doit
end module krmod


-- 
           Summary: internal compiler error: Segmentation fault/optional
                    arguments
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: krefson at googlemail dot com
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2008-01-27 12:03 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-18 11:57 [Bug fortran/34848] New: internal compiler error: Segmentation fault/optional arguments krefson at googlemail dot com
2008-01-18 12:05 ` [Bug fortran/34848] internal compiler error with optional argument of character type and array return type pinskia at gcc dot gnu dot org
2008-01-18 12:59 ` [Bug fortran/34848] [4.3 Regression] " burnus at gcc dot gnu dot org
2008-01-20  5:40 ` pinskia at gcc dot gnu dot org
2008-01-20 11:11 ` tkoenig at gcc dot gnu dot org
2008-01-20 14:56 ` krefson at googlemail dot com
2008-01-20 15:21 ` burnus at gcc dot gnu dot org
2008-01-20 15:58 ` burnus at gcc dot gnu dot org
2008-01-20 17:08 ` jakub at gcc dot gnu dot org
2008-01-22 19:52 ` burnus at gcc dot gnu dot org
2008-01-22 20:09 ` burnus at gcc dot gnu dot org
2008-01-26 20:46 ` burnus at gcc dot gnu dot org
2008-01-26 22:01 ` burnus at gcc dot gnu dot org
2008-01-26 22:21 ` burnus at gcc dot gnu dot org
2008-01-27 11:45 ` dominiq at lps dot ens dot fr
2008-01-27 12:03 ` dominiq at lps dot ens dot fr
2008-01-27 12:22 ` dominiq at lps dot ens dot fr
2008-01-27 12:49 ` dominiq at lps dot ens dot fr

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