public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/48654] New: ICE on return of derived type with allocatable-length character component
@ 2011-04-17 19:47 damian at rouson dot net
2011-04-17 21:23 ` [Bug fortran/48654] " dominiq at lps dot ens.fr
0 siblings, 1 reply; 2+ messages in thread
From: damian at rouson dot net @ 2011-04-17 19:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48654
Summary: ICE on return of derived type with allocatable-length
character component
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: damian@rouson.net
Created attachment 24022
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24022
A more involved example that is closer to the intended use.
gfortran 4.6 give an ICE on the code below (and on the attached more involved
example):
$ cat message.F90
module message_module
type message
character(:) ,allocatable :: string
end type
contains
type(message) function new_message()
end function
end module
$ gfortran -c message.F90
message.F90:6:0: internal compiler error: in gfc_get_derived_type, at
fortran/trans-types.c:2298
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ gfortran --version
GNU Fortran (GCC) 4.6.1 20110325 (prerelease)
Copyright (C) 2011 Free Software Foundation, Inc.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/48654] ICE on return of derived type with allocatable-length character component
2011-04-17 19:47 [Bug fortran/48654] New: ICE on return of derived type with allocatable-length character component damian at rouson dot net
@ 2011-04-17 21:23 ` dominiq at lps dot ens.fr
0 siblings, 0 replies; 2+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-04-17 21:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48654
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-04-17 21:22:15 UTC ---
I don't know where I grabbed your code, but I have already opened pr47545 for
it. Comment #2 says
> Deferred-length components are not yet supported, cf. bug 45170 comment 9.
>
> Nevertheless, gfortran should not ICE.
*** This bug has been marked as a duplicate of bug 47545 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-17 21:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-17 19:47 [Bug fortran/48654] New: ICE on return of derived type with allocatable-length character component damian at rouson dot net
2011-04-17 21:23 ` [Bug fortran/48654] " dominiq at lps dot ens.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).