public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/103957] New: ICE passing return value from elemental type bound procedure
@ 2022-01-09 23:12 ffadrique at gmail dot com
2022-01-09 23:15 ` [Bug fortran/103957] " ffadrique at gmail dot com
2022-01-09 23:23 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: ffadrique at gmail dot com @ 2022-01-09 23:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103957
Bug ID: 103957
Summary: ICE passing return value from elemental type bound
procedure
Product: gcc
Version: 9.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: ffadrique at gmail dot com
Target Milestone: ---
Created attachment 52149
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52149&action=edit
Type used for the type bound procedure
The attached code produces an ICE when compiled with 9.3.0 (my reference
compiler)
Does not occur with 10, 11 and 12.
The problem appears on the polymorphic array (elements) but not in the array
declared with type and fixed length. If the array is allocatable but not
polymorphic the issue does not occur either.
Compiler error follows:
fran@atlantis:~/tmp/passing_elemental$ gfortran Use.f03 Program.f03 -o
Program.bin
Program.f03:15:0:
15 | call check_array( elements%get_i() )
|
internal compiler error: in gfc_conv_expr_descriptor, at
fortran/trans-array.c:7348
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
fran@atlantis:~/tmp/passing_elemental$
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/103957] ICE passing return value from elemental type bound procedure
2022-01-09 23:12 [Bug fortran/103957] New: ICE passing return value from elemental type bound procedure ffadrique at gmail dot com
@ 2022-01-09 23:15 ` ffadrique at gmail dot com
2022-01-09 23:23 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: ffadrique at gmail dot com @ 2022-01-09 23:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103957
--- Comment #1 from Fran Martinez Fadrique <ffadrique at gmail dot com> ---
Created attachment 52150
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52150&action=edit
Main program where the error appears
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/103957] ICE passing return value from elemental type bound procedure
2022-01-09 23:12 [Bug fortran/103957] New: ICE passing return value from elemental type bound procedure ffadrique at gmail dot com
2022-01-09 23:15 ` [Bug fortran/103957] " ffadrique at gmail dot com
@ 2022-01-09 23:23 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-09 23:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103957
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 98472. Fixed in GCC 9.5.0.
*** This bug has been marked as a duplicate of bug 98472 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-09 23:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-09 23:12 [Bug fortran/103957] New: ICE passing return value from elemental type bound procedure ffadrique at gmail dot com
2022-01-09 23:15 ` [Bug fortran/103957] " ffadrique at gmail dot com
2022-01-09 23:23 ` pinskia at gcc dot gnu.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).