This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/13433] New: [gfortran] ICE in assumed-length character function (trans-decl.c)
- From: "tow21 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Dec 2003 16:42:57 -0000
- Subject: [Bug fortran/13433] New: [gfortran] ICE in assumed-length character function (trans-decl.c)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
(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