public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/95138] New: ICE on transfer to unlimited polymorphic
@ 2020-05-14 18:09 jrfsousa at gmail dot com
2020-05-14 21:00 ` [Bug fortran/95138] " anlauf at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: jrfsousa at gmail dot com @ 2020-05-14 18:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95138
Bug ID: 95138
Summary: ICE on transfer to unlimited polymorphic
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: jrfsousa at gmail dot com
Target Milestone: ---
Created attachment 48536
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48536&action=edit
Fortran code demonstrating problems.
Hi all!
ICE on 10 and 11, 9 compiles part of the code, so there is also some aspect of
regression here.
Using -Wsurprising gives surprising (to me...) diagnostics.
Not sure if all the code is kosher, most likely it is not...
using:
GNU Fortran (GCC) 11.0.0 20200513 (experimental)
GNU Fortran (GCC) 10.1.1 20200513
GNU Fortran (GCC) 9.3.1 20200513
Thank you very much.
Best regards,
José Rui
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/95138] ICE on transfer to unlimited polymorphic
2020-05-14 18:09 [Bug fortran/95138] New: ICE on transfer to unlimited polymorphic jrfsousa at gmail dot com
@ 2020-05-14 21:00 ` anlauf at gcc dot gnu.org
2020-05-16 12:54 ` anlauf at gcc dot gnu.org
2020-06-09 14:21 ` dominiq at lps dot ens.fr
2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-05-14 21:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95138
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2020-5-14
CC| |anlauf at gcc dot gnu.org
Keywords| |ice-on-valid-code,
| |wrong-code
Priority|P3 |P4
--- Comment #1 from anlauf at gcc dot gnu.org ---
A small subset of the reproducer shows that invalid code is generated:
program transfer_p
implicit none
integer, parameter :: n = 3
class(*), allocatable :: o(:)
integer :: v(n)
integer :: i
v = [(i, i=1,n)]
allocate(o, source=v)
print *, "size (o) =", size (o)
print *, transfer(o, v)
end
This compiles and gives:
size (o) = 3
1 2 3 0 0 0
while compiling with -fdefault-integer-8 gives the correct answer:
size (o) = 3
1 2 3
A look at the dump appears to give some hint where to look further.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/95138] ICE on transfer to unlimited polymorphic
2020-05-14 18:09 [Bug fortran/95138] New: ICE on transfer to unlimited polymorphic jrfsousa at gmail dot com
2020-05-14 21:00 ` [Bug fortran/95138] " anlauf at gcc dot gnu.org
@ 2020-05-16 12:54 ` anlauf at gcc dot gnu.org
2020-06-09 14:21 ` dominiq at lps dot ens.fr
2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-05-16 12:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95138
--- Comment #2 from anlauf at gcc dot gnu.org ---
Another datapoint: inserting
select type (o)
type is (integer)
print *, transfer(o, v)
end select
prints the right thing:
1 2 3
Also note the possibly related PR84006, where one gets an ICE on
print *, "storage_size (o) =", storage_size (o) ! ICE
unless one places this inside a select type.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/95138] ICE on transfer to unlimited polymorphic
2020-05-14 18:09 [Bug fortran/95138] New: ICE on transfer to unlimited polymorphic jrfsousa at gmail dot com
2020-05-14 21:00 ` [Bug fortran/95138] " anlauf at gcc dot gnu.org
2020-05-16 12:54 ` anlauf at gcc dot gnu.org
@ 2020-06-09 14:21 ` dominiq at lps dot ens.fr
2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens.fr @ 2020-06-09 14:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95138
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed|2020-05-14 00:00:00 |2020-06-09
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from GGC7 up to master.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-06-09 14:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14 18:09 [Bug fortran/95138] New: ICE on transfer to unlimited polymorphic jrfsousa at gmail dot com
2020-05-14 21:00 ` [Bug fortran/95138] " anlauf at gcc dot gnu.org
2020-05-16 12:54 ` anlauf at gcc dot gnu.org
2020-06-09 14:21 ` 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).