public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/82868] ICE in generate_coarray_sym_init, at fortran/trans-decl.c:5203
       [not found] <bug-82868-4@http.gcc.gnu.org/bugzilla/>
@ 2022-09-19 20:53 ` anlauf at gcc dot gnu.org
  2022-09-21 18:35 ` anlauf at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-09-19 20:53 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gcc dot gnu.org
           Keywords|                            |ice-on-valid-code

--- Comment #2 from anlauf at gcc dot gnu.org ---
Potential fix:

diff --git a/gcc/fortran/trans-decl.cc b/gcc/fortran/trans-decl.cc
index 908a4c6d42e..5d16d640322 100644
--- a/gcc/fortran/trans-decl.cc
+++ b/gcc/fortran/trans-decl.cc
@@ -5529,6 +5529,7 @@ generate_coarray_sym_init (gfc_symbol *sym)

   if (sym->attr.dummy || sym->attr.allocatable || !sym->attr.codimension
       || sym->attr.use_assoc || !sym->attr.referenced
+      || sym->attr.associate_var
       || sym->attr.select_type_temporary)
     return;

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

* [Bug fortran/82868] ICE in generate_coarray_sym_init, at fortran/trans-decl.c:5203
       [not found] <bug-82868-4@http.gcc.gnu.org/bugzilla/>
  2022-09-19 20:53 ` [Bug fortran/82868] ICE in generate_coarray_sym_init, at fortran/trans-decl.c:5203 anlauf at gcc dot gnu.org
@ 2022-09-21 18:35 ` 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; 7+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-09-21 18:35 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

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

--- Comment #3 from anlauf at gcc dot gnu.org ---
Submitted: https://gcc.gnu.org/pipermail/fortran/2022-September/058231.html

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

* [Bug fortran/82868] ICE in generate_coarray_sym_init, at fortran/trans-decl.c:5203
       [not found] <bug-82868-4@http.gcc.gnu.org/bugzilla/>
  2022-09-19 20:53 ` [Bug fortran/82868] ICE in generate_coarray_sym_init, at fortran/trans-decl.c:5203 anlauf at gcc dot gnu.org
  2022-09-21 18:35 ` anlauf at gcc dot gnu.org
@ 2022-09-22 17:40 ` cvs-commit at gcc dot gnu.org
  2022-09-29 18:39 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 7+ 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=82868

--- Comment #4 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:bc71318a91286b5f00e88f07aab818ac82510692

commit r13-2781-gbc71318a91286b5f00e88f07aab818ac82510692
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Wed Sep 21 19:55:30 2022 +0200

    Fortran: fix ICE in generate_coarray_sym_init [PR82868]

    gcc/fortran/ChangeLog:

            PR fortran/82868
            * trans-decl.cc (generate_coarray_sym_init): Skip symbol
            if attr.associate_var.

    gcc/testsuite/ChangeLog:

            PR fortran/82868
            * gfortran.dg/associate_26a.f90: New test.

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

* [Bug fortran/82868] ICE in generate_coarray_sym_init, at fortran/trans-decl.c:5203
       [not found] <bug-82868-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2022-09-22 17:40 ` cvs-commit at gcc dot gnu.org
@ 2022-09-29 18:39 ` cvs-commit at gcc dot gnu.org
  2022-09-30 20:33 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-29 18:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 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:22c2658a8b6ae9ece8b33bc483c04a767168b5f4

commit r12-8797-g22c2658a8b6ae9ece8b33bc483c04a767168b5f4
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Wed Sep 21 19:55:30 2022 +0200

    Fortran: fix ICE in generate_coarray_sym_init [PR82868]

    gcc/fortran/ChangeLog:

            PR fortran/82868
            * trans-decl.cc (generate_coarray_sym_init): Skip symbol
            if attr.associate_var.

    gcc/testsuite/ChangeLog:

            PR fortran/82868
            * gfortran.dg/associate_26a.f90: New test.

    (cherry picked from commit bc71318a91286b5f00e88f07aab818ac82510692)

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

* [Bug fortran/82868] ICE in generate_coarray_sym_init, at fortran/trans-decl.c:5203
       [not found] <bug-82868-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2022-09-29 18:39 ` cvs-commit at gcc dot gnu.org
@ 2022-09-30 20:33 ` cvs-commit at gcc dot gnu.org
  2022-09-30 20:34 ` cvs-commit at gcc dot gnu.org
  2022-09-30 20:35 ` anlauf at gcc dot gnu.org
  6 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-30 20:33 UTC (permalink / raw)
  To: gcc-bugs

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

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

https://gcc.gnu.org/g:8a24700c64cabd99802a77ab13080d6f66ee0be7

commit r11-10283-g8a24700c64cabd99802a77ab13080d6f66ee0be7
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Wed Sep 21 19:55:30 2022 +0200

    Fortran: fix ICE in generate_coarray_sym_init [PR82868]

    gcc/fortran/ChangeLog:

            PR fortran/82868
            * trans-decl.c (generate_coarray_sym_init): Skip symbol
            if attr.associate_var.

    gcc/testsuite/ChangeLog:

            PR fortran/82868
            * gfortran.dg/associate_26a.f90: New test.

    (cherry picked from commit bc71318a91286b5f00e88f07aab818ac82510692)

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

* [Bug fortran/82868] ICE in generate_coarray_sym_init, at fortran/trans-decl.c:5203
       [not found] <bug-82868-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2022-09-30 20:33 ` cvs-commit at gcc dot gnu.org
@ 2022-09-30 20:34 ` cvs-commit at gcc dot gnu.org
  2022-09-30 20:35 ` anlauf at gcc dot gnu.org
  6 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-30 20:34 UTC (permalink / raw)
  To: gcc-bugs

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

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

https://gcc.gnu.org/g:f2509f6195869fd01aec02714af2d0c3346fa917

commit r10-11012-gf2509f6195869fd01aec02714af2d0c3346fa917
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Wed Sep 21 19:55:30 2022 +0200

    Fortran: fix ICE in generate_coarray_sym_init [PR82868]

    gcc/fortran/ChangeLog:

            PR fortran/82868
            * trans-decl.c (generate_coarray_sym_init): Skip symbol
            if attr.associate_var.

    gcc/testsuite/ChangeLog:

            PR fortran/82868
            * gfortran.dg/associate_26a.f90: New test.

    (cherry picked from commit bc71318a91286b5f00e88f07aab818ac82510692)

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

* [Bug fortran/82868] ICE in generate_coarray_sym_init, at fortran/trans-decl.c:5203
       [not found] <bug-82868-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2022-09-30 20:34 ` cvs-commit at gcc dot gnu.org
@ 2022-09-30 20:35 ` anlauf at gcc dot gnu.org
  6 siblings, 0 replies; 7+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-09-30 20:35 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

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

--- Comment #8 from anlauf at gcc dot gnu.org ---
Fixed on all open branches.  Closing.

Thanks for the report!

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

end of thread, other threads:[~2022-09-30 20:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-82868-4@http.gcc.gnu.org/bugzilla/>
2022-09-19 20:53 ` [Bug fortran/82868] ICE in generate_coarray_sym_init, at fortran/trans-decl.c:5203 anlauf at gcc dot gnu.org
2022-09-21 18:35 ` anlauf at gcc dot gnu.org
2022-09-22 17:40 ` cvs-commit at gcc dot gnu.org
2022-09-29 18:39 ` cvs-commit at gcc dot gnu.org
2022-09-30 20:33 ` cvs-commit at gcc dot gnu.org
2022-09-30 20:34 ` cvs-commit at gcc dot gnu.org
2022-09-30 20:35 ` 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).