This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/13433] New: [gfortran] ICE in assumed-length character function (trans-decl.c)


(tree-ssa snapshot of 20031217)

The following code:
      Character*(*) Function string(label,default)

      Implicit None
      Character(Len=*), Intent(In) :: label
      Character(Len=*), Intent(In) :: default

      string = ''
      
      End Function string

produces the following error:
parabrisas% gfortran -xf95 -c -O test.f
f951: ../../gcc/gcc/fortran/trans-decl.c:1022: gfc_build_function_decl:
Assertion `sym->ts.cl && sym->ts.cl->length && sym->ts.cl->length->expr_type ==
EXPR_CONSTANT' failed.
test.f: In function `string':

test.f:0: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: [gfortran] ICE in assumed-length character function
                    (trans-decl.c)
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tow21 at cam dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]