public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/102275] New: Assumed rank, unlimited polymorphic pointer gives incorrect behavious
@ 2021-09-10 13:18 paal at levold dot net
2022-10-08 20:41 ` [Bug fortran/102275] Assumed rank, unlimited polymorphic pointer gives incorrect behaviour mikael at gcc dot gnu.org
2022-10-09 18:24 ` anlauf at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: paal at levold dot net @ 2021-09-10 13:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102275
Bug ID: 102275
Summary: Assumed rank, unlimited polymorphic pointer gives
incorrect behavious
Product: gcc
Version: 11.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: paal at levold dot net
Target Milestone: ---
Created attachment 51434
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51434&action=edit
Source code reproducing the issue
Possibly related to bug 100097.
Environment: GCC 11.2.0 Docker image from https://hub.docker.com/_/gcc.
The attached code uses a unlimited polymorphic pointer with assumed rank. When
running it produces the following output:
This is correct:
rank 0
rank 1
T T
ptr0 = 123
ptr1 = 1 2 3
This is NOT correct:
rank 0
rank 0
F T
uptr1 = 123
The latter part is incorrect, it should be:
rank 0
rank 1
T T
uptr0 = 123
uptr1 = 1 2 3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/102275] Assumed rank, unlimited polymorphic pointer gives incorrect behaviour
2021-09-10 13:18 [Bug fortran/102275] New: Assumed rank, unlimited polymorphic pointer gives incorrect behavious paal at levold dot net
@ 2022-10-08 20:41 ` mikael at gcc dot gnu.org
2022-10-09 18:24 ` anlauf at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: mikael at gcc dot gnu.org @ 2022-10-08 20:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102275
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikael at gcc dot gnu.org
--- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> ---
Seems to work now...
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/102275] Assumed rank, unlimited polymorphic pointer gives incorrect behaviour
2021-09-10 13:18 [Bug fortran/102275] New: Assumed rank, unlimited polymorphic pointer gives incorrect behavious paal at levold dot net
2022-10-08 20:41 ` [Bug fortran/102275] Assumed rank, unlimited polymorphic pointer gives incorrect behaviour mikael at gcc dot gnu.org
@ 2022-10-09 18:24 ` anlauf at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-10-09 18:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102275
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |10.4.0, 11.2.0, 11.3.0
Keywords| |wrong-code
Known to work| |12.2.1, 13.0
--- Comment #2 from anlauf at gcc dot gnu.org ---
Adding versions known to work and known to fail.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-09 18:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-10 13:18 [Bug fortran/102275] New: Assumed rank, unlimited polymorphic pointer gives incorrect behavious paal at levold dot net
2022-10-08 20:41 ` [Bug fortran/102275] Assumed rank, unlimited polymorphic pointer gives incorrect behaviour mikael at gcc dot gnu.org
2022-10-09 18:24 ` anlauf 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).