public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/100103] New: Automatic reallocation fails inside select rank
@ 2021-04-15 16:33 jrfsousa at gmail dot com
  2021-04-16 13:40 ` [Bug fortran/100103] " dominiq at lps dot ens.fr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jrfsousa at gmail dot com @ 2021-04-15 16:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100103

            Bug ID: 100103
           Summary: Automatic reallocation fails inside select rank
           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 50606
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50606&action=edit
Fortran code showing problem

Hi All!

Automatic reallocation on intrinsic assignment fails inside select rank
construct.

Seen on:

GNU Fortran (GCC) 11.0.1 20210415 (experimental)
GNU Fortran (GCC) 10.3.1 20210415

Thank you very much.

Best regards,
José Rui

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/100103] Automatic reallocation fails inside select rank
  2021-04-15 16:33 [Bug fortran/100103] New: Automatic reallocation fails inside select rank jrfsousa at gmail dot com
@ 2021-04-16 13:40 ` dominiq at lps dot ens.fr
  2022-09-21 21:08 ` anlauf at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dominiq at lps dot ens.fr @ 2021-04-16 13:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100103

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-04-16

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Patch at https://gcc.gnu.org/pipermail/fortran/2021-April/055934.html.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/100103] Automatic reallocation fails inside select rank
  2021-04-15 16:33 [Bug fortran/100103] New: Automatic reallocation fails inside select rank jrfsousa at gmail dot com
  2021-04-16 13:40 ` [Bug fortran/100103] " dominiq at lps dot ens.fr
@ 2022-09-21 21:08 ` anlauf at gcc dot gnu.org
  2022-09-22 17:40 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-09-21 21:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100103

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |anlauf at gcc dot gnu.org

--- Comment #2 from anlauf at gcc dot gnu.org ---
Rebased version pinged here:

https://gcc.gnu.org/pipermail/fortran/2022-September/058235.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/100103] Automatic reallocation fails inside select rank
  2021-04-15 16:33 [Bug fortran/100103] New: Automatic reallocation fails inside select rank jrfsousa at gmail dot com
  2021-04-16 13:40 ` [Bug fortran/100103] " dominiq at lps dot ens.fr
  2022-09-21 21:08 ` anlauf at gcc dot gnu.org
@ 2022-09-22 17:40 ` cvs-commit at gcc dot gnu.org
  2022-10-01 18:17 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-22 17:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100103

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:12b537b9b7fd50f4b2fbfcb7ccf45f8d66085577

commit r13-2782-g12b537b9b7fd50f4b2fbfcb7ccf45f8d66085577
Author: José Rui Faustino de Sousa <jrfsousa@gmail.com>
Date:   Wed Sep 21 22:55:02 2022 +0200

    Fortran: Fix automatic reallocation inside select rank [PR100103]

    gcc/fortran/ChangeLog:

            PR fortran/100103
            * trans-array.cc (gfc_is_reallocatable_lhs): Add select rank
            temporary associate names as possible targets of automatic
            reallocation.

    gcc/testsuite/ChangeLog:

            PR fortran/100103
            * gfortran.dg/PR100103.f90: New test.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/100103] Automatic reallocation fails inside select rank
  2021-04-15 16:33 [Bug fortran/100103] New: Automatic reallocation fails inside select rank jrfsousa at gmail dot com
                   ` (2 preceding siblings ...)
  2022-09-22 17:40 ` cvs-commit at gcc dot gnu.org
@ 2022-10-01 18:17 ` cvs-commit at gcc dot gnu.org
  2022-10-01 18:45 ` anlauf at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-10-01 18:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100103

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:56275fd23e3f7876c24a812f9b6776b00a94744e

commit r12-8803-g56275fd23e3f7876c24a812f9b6776b00a94744e
Author: José Rui Faustino de Sousa <jrfsousa@gmail.com>
Date:   Wed Sep 21 22:55:02 2022 +0200

    Fortran: Fix automatic reallocation inside select rank [PR100103]

    gcc/fortran/ChangeLog:

            PR fortran/100103
            * trans-array.cc (gfc_is_reallocatable_lhs): Add select rank
            temporary associate names as possible targets of automatic
            reallocation.

    gcc/testsuite/ChangeLog:

            PR fortran/100103
            * gfortran.dg/PR100103.f90: New test.

    (cherry picked from commit 12b537b9b7fd50f4b2fbfcb7ccf45f8d66085577)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/100103] Automatic reallocation fails inside select rank
  2021-04-15 16:33 [Bug fortran/100103] New: Automatic reallocation fails inside select rank jrfsousa at gmail dot com
                   ` (3 preceding siblings ...)
  2022-10-01 18:17 ` cvs-commit at gcc dot gnu.org
@ 2022-10-01 18:45 ` anlauf at gcc dot gnu.org
  2022-10-29 20:25 ` anlauf at gcc dot gnu.org
  2022-10-29 20:26 ` anlauf at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-10-01 18:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100103

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.3
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from anlauf at gcc dot gnu.org ---
Fixed on mainline for gcc-13, and on 12-branch.  Closing.

Thanks for the patch!

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/100103] Automatic reallocation fails inside select rank
  2021-04-15 16:33 [Bug fortran/100103] New: Automatic reallocation fails inside select rank jrfsousa at gmail dot com
                   ` (4 preceding siblings ...)
  2022-10-01 18:45 ` anlauf at gcc dot gnu.org
@ 2022-10-29 20:25 ` anlauf at gcc dot gnu.org
  2022-10-29 20:26 ` anlauf at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-10-29 20:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100103
Bug 100103 depends on bug 100097, which changed state.

Bug 100097 Summary: Unlimited polymorphic pointers and allocatables have incorrect rank
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100097

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/100103] Automatic reallocation fails inside select rank
  2021-04-15 16:33 [Bug fortran/100103] New: Automatic reallocation fails inside select rank jrfsousa at gmail dot com
                   ` (5 preceding siblings ...)
  2022-10-29 20:25 ` anlauf at gcc dot gnu.org
@ 2022-10-29 20:26 ` anlauf at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-10-29 20:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100103
Bug 100103 depends on bug 100098, which changed state.

Bug 100098 Summary: Polymorphic pointers and allocatables have incorrect rank
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100098

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-10-29 20:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 16:33 [Bug fortran/100103] New: Automatic reallocation fails inside select rank jrfsousa at gmail dot com
2021-04-16 13:40 ` [Bug fortran/100103] " dominiq at lps dot ens.fr
2022-09-21 21:08 ` anlauf at gcc dot gnu.org
2022-09-22 17:40 ` cvs-commit at gcc dot gnu.org
2022-10-01 18:17 ` cvs-commit at gcc dot gnu.org
2022-10-01 18:45 ` anlauf at gcc dot gnu.org
2022-10-29 20:25 ` anlauf at gcc dot gnu.org
2022-10-29 20:26 ` 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).