public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/16236] New: ICE with function returning string of variable length
@ 2004-06-27 20:20 anlauf at hep dot tu-darmstadt dot de
2004-06-27 20:29 ` [Bug fortran/16236] " pinskia at gcc dot gnu dot org
2004-06-27 20:29 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: anlauf at hep dot tu-darmstadt dot de @ 2004-06-27 20:20 UTC (permalink / raw)
To: gcc-bugs
File: gfortran-bug3.f90
module trivial
contains
function my_copy(str) result(s)
implicit none
character(*), intent(in):: str
character(len(str)) s
s = str
return
end function my_copy
end module trivial
program boom
use trivial
implicit none
print *, my_copy('Boom!')
end program boom
Result:
% gfortran gfortran-bug3.f90
f951: ../../gcc/gcc/fortran/trans-expr.c:1042: gfc_conv_function_call: Assertion
`sym->ts.cl && sym->ts.cl->length && sym->ts.cl->length->expr_type ==
EXPR_CONSTANT' failed.
gfortran-bug3.f90: In function `MAIN__':
gfortran-bug3.f90:15: 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: ICE with function returning string of variable length
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at hep dot tu-darmstadt dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16236
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/16236] ICE with function returning string of variable length
2004-06-27 20:20 [Bug fortran/16236] New: ICE with function returning string of variable length anlauf at hep dot tu-darmstadt dot de
@ 2004-06-27 20:29 ` pinskia at gcc dot gnu dot org
2004-06-27 20:29 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-27 20:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-27 20:20 -------
I think this is a dup of bug 15326.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16236
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/16236] ICE with function returning string of variable length
2004-06-27 20:20 [Bug fortran/16236] New: ICE with function returning string of variable length anlauf at hep dot tu-darmstadt dot de
2004-06-27 20:29 ` [Bug fortran/16236] " pinskia at gcc dot gnu dot org
@ 2004-06-27 20:29 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-27 20:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-27 20:29 -------
Yes this is a dup of bug 15326.
*** This bug has been marked as a duplicate of 15326 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Keywords| |ice-on-valid-code
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16236
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-06-27 20:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-27 20:20 [Bug fortran/16236] New: ICE with function returning string of variable length anlauf at hep dot tu-darmstadt dot de
2004-06-27 20:29 ` [Bug fortran/16236] " pinskia at gcc dot gnu dot org
2004-06-27 20:29 ` 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).