public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
@ 2020-07-05 18:32 ` anlauf at gcc dot gnu.org
  2021-09-10 20:08 ` anlauf at gcc dot gnu.org
                   ` (41 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-07-05 18:32 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 88379 Summary: [8/9 Regression] [Coarray] ICE with allocatable coarray, class and associate in resolve_assoc_var, at fortran/resolve.c:8750
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88379

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
  2020-07-05 18:32 ` [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement anlauf at gcc dot gnu.org
@ 2021-09-10 20:08 ` anlauf at gcc dot gnu.org
  2023-02-11 18:20 ` anlauf at gcc dot gnu.org
                   ` (40 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-09-10 20:08 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 93701 Summary: ICE on associate of wrongly accessed array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93701

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
  2020-07-05 18:32 ` [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement anlauf at gcc dot gnu.org
  2021-09-10 20:08 ` anlauf at gcc dot gnu.org
@ 2023-02-11 18:20 ` anlauf at gcc dot gnu.org
  2023-03-29  8:45 ` pault at gcc dot gnu.org
                   ` (39 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-02-11 18:20 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 95107 Summary: ICE in hash_operand, at fold-const.c:3768
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95107

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2023-02-11 18:20 ` anlauf at gcc dot gnu.org
@ 2023-03-29  8:45 ` pault at gcc dot gnu.org
  2023-04-08  8:04 ` cvs-commit at gcc dot gnu.org
                   ` (38 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-03-29  8:45 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 92960 Summary: ICE tree check: expected tree that contains 'decl minimal' structure, have 'component_ref' in add_decl_as_local, at fortran/trans-decl.c:261
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92960

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2023-03-29  8:45 ` pault at gcc dot gnu.org
@ 2023-04-08  8:04 ` cvs-commit at gcc dot gnu.org
  2023-04-08  9:29 ` pault at gcc dot gnu.org
                   ` (37 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-04-08  8:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

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

commit r13-7121-geac493851f07df98213ecf67a5e9ab41a7babcd2
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Sat Apr 8 09:04:13 2023 +0100

    Fortran: Fix some of the bugs in associate [PR87477]

    2023-04-08  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/87477
            * iresolve.cc (gfc_resolve_adjustl, gfc_resolve_adjustr): if
            string length is deferred use the string typespec for result.
            * resolve.cc (resolve_assoc_var): Handle parentheses around the
            target expression.
            (resolve_block_construct): Remove unnecessary static decls.
            * trans-array.cc (gfc_conv_expr_descriptor): Guard string len
            expression in condition. Improve handling of string length and
            span, especially for substrings of the descriptor.
            (duplicate_allocatable): Make element type more explicit with
            'eltype'.
            * trans-decl.cc (gfc_get_symbol_decl): Emit a fatal error with
            appropriate message instead of ICE if symbol type is unknown.
            (gfc_generate_function_code): Set current locus to proc_sym
            declared_at.
            * trans-expr.cc (gfc_get_expr_charlen): Retain last charlen in
            'previous' and use if end expression in substring reference is
            null.
            (gfc_conv_string_length): Use gfc_conv_expr_descriptor if
            'expr_flat' is an array. Add post block to catch deallocation
            of temporaries.
            (gfc_conv_procedure_call): Assign the parmse string length to
            the expression string length, if it is deferred.
            (gfc_trans_alloc_subarray_assign): If this is a deferred string
            length component, store the string length in the hidden comp.
            Update the typespec length accordingly. Generate a new type
            spec for the call to gfc_duplicate-allocatable in this case.
            * trans-io.cc (gfc_trans_transfer): Scalarize transfer of
            deferred character array components.

    gcc/testsuite/
            PR fortran/87477
            * gfortran.dg/associate_47.f90 : Enable substring test.
            * gfortran.dg/associate_51.f90 : Update an error message.
            * gfortran.dg/goacc/array-with-dt-2.f90 : Add span to
            uninitialzed dg-warnings.

            PR fortran/85686
            PR fortran/88247
            PR fortran/91941
            PR fortran/92779
            PR fortran/93339
            PR fortran/93813
            PR fortran/100948
            PR fortran/102106
            * gfortran.dg/associate_60.f90 : New test

            PR fortran/98408
            * gfortran.dg/pr98408.f90 : New test

            PR fortran/105205
            * gfortran.dg/pr105205.f90 : New test

            PR fortran/106918
            * gfortran.dg/pr106918.f90 : New test

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2023-04-08  8:04 ` cvs-commit at gcc dot gnu.org
@ 2023-04-08  9:29 ` pault at gcc dot gnu.org
  2023-04-08  9:30 ` pault at gcc dot gnu.org
                   ` (36 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-04-08  9:29 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 85686 Summary: [10/11/12/13 Regression] ICE in gfc_conv_scalarized_array_ref, at fortran/trans-array.c:3385
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85686

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2023-04-08  9:29 ` pault at gcc dot gnu.org
@ 2023-04-08  9:30 ` pault at gcc dot gnu.org
  2023-04-08  9:31 ` pault at gcc dot gnu.org
                   ` (35 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-04-08  9:30 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 88247 Summary: [10/11/12/13 Regression] ICE in get_array_ctor_var_strlen, at fortran/trans-array.c:2068
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88247

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2023-04-08  9:30 ` pault at gcc dot gnu.org
@ 2023-04-08  9:31 ` pault at gcc dot gnu.org
  2023-04-08  9:31 ` pault at gcc dot gnu.org
                   ` (34 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-04-08  9:31 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 91941 Summary: [10/11/12/13 Regression] ICE in gfc_conv_expr_descriptor, at fortran/trans-array.c:7336
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91941

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2023-04-08  9:31 ` pault at gcc dot gnu.org
@ 2023-04-08  9:31 ` pault at gcc dot gnu.org
  2023-04-08  9:32 ` pault at gcc dot gnu.org
                   ` (33 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-04-08  9:31 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 92779 Summary: [10/11/12/13 Regression] ICE in gfc_conv_intrinsic_funcall, at fortran/trans-intrinsic.c:4225
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92779

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2023-04-08  9:31 ` pault at gcc dot gnu.org
@ 2023-04-08  9:32 ` pault at gcc dot gnu.org
  2023-04-08  9:32 ` pault at gcc dot gnu.org
                   ` (32 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-04-08  9:32 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 93339 Summary: [10/11/12/13 Regression] ICE in gimplify_var_or_parm_decl, at gimplify.c:2830
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93339

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2023-04-08  9:32 ` pault at gcc dot gnu.org
@ 2023-04-08  9:32 ` pault at gcc dot gnu.org
  2023-04-08  9:33 ` pault at gcc dot gnu.org
                   ` (31 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-04-08  9:32 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 93813 Summary: [10/11/12/13 Regression] ICE in gfc_trans_select_type_cases, at fortran/trans-stmt.c:2874
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93813

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2023-04-08  9:32 ` pault at gcc dot gnu.org
@ 2023-04-08  9:33 ` pault at gcc dot gnu.org
  2023-04-08  9:35 ` pault at gcc dot gnu.org
                   ` (30 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-04-08  9:33 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 100948 Summary: [12/13 Regression] ICE in gfc_conv_expr_val, at fortran/trans-expr.c:9069
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100948

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2023-04-08  9:33 ` pault at gcc dot gnu.org
@ 2023-04-08  9:35 ` pault at gcc dot gnu.org
  2023-04-08 13:00 ` pault at gcc dot gnu.org
                   ` (29 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-04-08  9:35 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 102106 Summary: Freeing unallocated memory, with associate to derived type with polymorphic component
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102106

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (12 preceding siblings ...)
  2023-04-08  9:35 ` pault at gcc dot gnu.org
@ 2023-04-08 13:00 ` pault at gcc dot gnu.org
  2023-06-01 13:52 ` pault at gcc dot gnu.org
                   ` (28 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-04-08 13:00 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 102111 Summary: Segfault with associate to derived type with allocatable component
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102111

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (13 preceding siblings ...)
  2023-04-08 13:00 ` pault at gcc dot gnu.org
@ 2023-06-01 13:52 ` pault at gcc dot gnu.org
  2023-06-02  7:41 ` cvs-commit at gcc dot gnu.org
                   ` (27 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-01 13:52 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 87127 Summary: External function not recognised from within an associate block
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87127

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (14 preceding siblings ...)
  2023-06-01 13:52 ` pault at gcc dot gnu.org
@ 2023-06-02  7:41 ` cvs-commit at gcc dot gnu.org
  2023-06-02  7:52 ` pault at gcc dot gnu.org
                   ` (26 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-06-02  7:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

https://gcc.gnu.org/g:3c2eba4b7a2355ed5099e35332388206c484744d

commit r14-1487-g3c2eba4b7a2355ed5099e35332388206c484744d
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Fri Jun 2 08:41:45 2023 +0100

    Fortran: Fix some problems blocking associate meta-bug [PR87477]

    2023-06-02  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/87477
            * parse.cc (parse_associate): Replace the existing evaluation
            of the target rank with calls to gfc_resolve_ref and
            gfc_expression_rank. Identify untyped target function results
            with structure constructors by finding the appropriate derived
            type.
            * resolve.cc (resolve_symbol): Allow associate variables to be
            assumed shape.

    gcc/testsuite/
            PR fortran/87477
            * gfortran.dg/associate_54.f90 : Cope with extra error.

            PR fortran/102109
            * gfortran.dg/pr102109.f90 : New test.

            PR fortran/102112
            * gfortran.dg/pr102112.f90 : New test.

            PR fortran/102190
            * gfortran.dg/pr102190.f90 : New test.

            PR fortran/102532
            * gfortran.dg/pr102532.f90 : New test.

            PR fortran/109948
            * gfortran.dg/pr109948.f90 : New test.

            PR fortran/99326
            * gfortran.dg/pr99326.f90 : New test.

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (15 preceding siblings ...)
  2023-06-02  7:41 ` cvs-commit at gcc dot gnu.org
@ 2023-06-02  7:52 ` pault at gcc dot gnu.org
  2023-06-02  7:59 ` pault at gcc dot gnu.org
                   ` (25 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  7:52 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 83154 Summary: ICE: associate and coarrays
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83154

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (16 preceding siblings ...)
  2023-06-02  7:52 ` pault at gcc dot gnu.org
@ 2023-06-02  7:59 ` pault at gcc dot gnu.org
  2023-06-02  8:02 ` pault at gcc dot gnu.org
                   ` (24 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  7:59 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 87430 Summary: [10/11/12/13/14 Regression] ICE in fortran/trans-types.c:1157
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87430

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (17 preceding siblings ...)
  2023-06-02  7:59 ` pault at gcc dot gnu.org
@ 2023-06-02  8:02 ` pault at gcc dot gnu.org
  2023-06-02  8:16 ` pault at gcc dot gnu.org
                   ` (23 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  8:02 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 87460 Summary: [F03] accepts-invalid bug with ASSOCIATE and array argument
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87460

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (18 preceding siblings ...)
  2023-06-02  8:02 ` pault at gcc dot gnu.org
@ 2023-06-02  8:16 ` pault at gcc dot gnu.org
  2023-06-02  8:24 ` pault at gcc dot gnu.org
                   ` (22 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  8:16 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 93338 Summary: [10/11/12/13/14 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:282
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93338

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (19 preceding siblings ...)
  2023-06-02  8:16 ` pault at gcc dot gnu.org
@ 2023-06-02  8:24 ` pault at gcc dot gnu.org
  2023-06-02  8:28 ` pault at gcc dot gnu.org
                   ` (21 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  8:24 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 95068 Summary: [10/11/12/13/14 Regression] ICE in gfc_get_class_from_expr, at fortran/trans-expr.c:484
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95068

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (20 preceding siblings ...)
  2023-06-02  8:24 ` pault at gcc dot gnu.org
@ 2023-06-02  8:28 ` pault at gcc dot gnu.org
  2023-06-02  8:40 ` pault at gcc dot gnu.org
                   ` (20 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  8:28 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 99326 Summary: [10/11/12/13/14 Regression] ICE in gfc_build_dummy_array_decl, at fortran/trans-decl.c:1299
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99326

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (21 preceding siblings ...)
  2023-06-02  8:28 ` pault at gcc dot gnu.org
@ 2023-06-02  8:40 ` pault at gcc dot gnu.org
  2023-06-02  8:41 ` pault at gcc dot gnu.org
                   ` (19 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  8:40 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 102109 Summary: Associate to construct compound object results in incorrect type inferred
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102109

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (22 preceding siblings ...)
  2023-06-02  8:40 ` pault at gcc dot gnu.org
@ 2023-06-02  8:41 ` pault at gcc dot gnu.org
  2023-06-02  8:42 ` pault at gcc dot gnu.org
                   ` (18 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  8:41 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 102112 Summary: Cannot associate with component of associate target
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102112

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (23 preceding siblings ...)
  2023-06-02  8:41 ` pault at gcc dot gnu.org
@ 2023-06-02  8:42 ` pault at gcc dot gnu.org
  2023-06-02  8:44 ` pault at gcc dot gnu.org
                   ` (17 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  8:42 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 102190 Summary: Syntax error reported in associate construct
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102190

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (24 preceding siblings ...)
  2023-06-02  8:42 ` pault at gcc dot gnu.org
@ 2023-06-02  8:44 ` pault at gcc dot gnu.org
  2023-06-02  8:52 ` pault at gcc dot gnu.org
                   ` (16 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  8:44 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 102532 Summary: [10/11/12/13/14 Regression] ICE in gfc_get_corank, at fortran/expr.c:5769
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102532

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (25 preceding siblings ...)
  2023-06-02  8:44 ` pault at gcc dot gnu.org
@ 2023-06-02  8:52 ` pault at gcc dot gnu.org
  2023-06-02  8:55 ` pault at gcc dot gnu.org
                   ` (15 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  8:52 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 104430 Summary: [10 Regression] ICE in gfc_conv_component_ref, at fortran/trans-expr.cc:2742 since r9-3522-gd0477233215e37de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104430

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (26 preceding siblings ...)
  2023-06-02  8:52 ` pault at gcc dot gnu.org
@ 2023-06-02  8:55 ` pault at gcc dot gnu.org
  2023-06-02  9:16 ` pault at gcc dot gnu.org
                   ` (14 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  8:55 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 106048 Summary: [10/11/12/13/14 Regression] ICE in ubsan_encode_value, at ubsan.cc:143 / verify_gimple failed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106048

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (27 preceding siblings ...)
  2023-06-02  8:55 ` pault at gcc dot gnu.org
@ 2023-06-02  9:16 ` pault at gcc dot gnu.org
  2023-06-08  6:11 ` cvs-commit at gcc dot gnu.org
                   ` (13 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-02  9:16 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 109948 Summary: [13/14 Regression] ICE(segfault) in gfc_expression_rank() from gfc_op_rank_conformable()
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109948

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (28 preceding siblings ...)
  2023-06-02  9:16 ` pault at gcc dot gnu.org
@ 2023-06-08  6:11 ` cvs-commit at gcc dot gnu.org
  2023-06-08  6:20 ` pault at gcc dot gnu.org
                   ` (12 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-06-08  6:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

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

commit r14-1629-gd08f2e4f74583e27002368989bba197f8eb7f6d2
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Thu Jun 8 07:11:32 2023 +0100

    Fortran: Fix some more blockers in associate meta-bug [PR87477]

    2023-06-08  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/87477
            PR fortran/99350
            PR fortran/107821
            PR fortran/109451
            * decl.cc (char_len_param_value): Simplify a copy of the expr
            and replace the original if there is no error.
            * gfortran.h : Remove the redundant field 'rankguessed' from
            'gfc_association_list'.
            * resolve.cc (resolve_assoc_var): Remove refs to 'rankguessed'.
            (resolve_variable): Associate names with constant or structure
            constructor targets cannot have array refs.
            * trans-array.cc (gfc_conv_expr_descriptor): Guard expression
            character length backend decl before using it. Suppress the
            assignment if lhs equals rhs.
            * trans-io.cc (gfc_trans_transfer): Scalarize transfer of
            associate variables pointing to a variable. Add comment.
            * trans-stmt.cc (trans_associate_var): Remove requirement that
            the character length be deferred before assigning the value
            returned by gfc_conv_expr_descriptor. Also, guard the backend
            decl before testing with VAR_P.

    gcc/testsuite/
            PR fortran/99350
            * gfortran.dg/pr99350.f90 : New test.

            PR fortran/107821
            * gfortran.dg/associate_5.f03 : Changed error message.
            * gfortran.dg/pr107821.f90 : New test.

            PR fortran/109451
            * gfortran.dg/associate_61.f90 : New test

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (29 preceding siblings ...)
  2023-06-08  6:11 ` cvs-commit at gcc dot gnu.org
@ 2023-06-08  6:20 ` pault at gcc dot gnu.org
  2023-06-08  6:21 ` pault at gcc dot gnu.org
                   ` (11 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-08  6:20 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 109451 Summary: ICE in gfc_conv_expr_descriptor with ASSOCIATE and substrings
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109451

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (30 preceding siblings ...)
  2023-06-08  6:20 ` pault at gcc dot gnu.org
@ 2023-06-08  6:21 ` pault at gcc dot gnu.org
  2023-06-21 16:06 ` cvs-commit at gcc dot gnu.org
                   ` (10 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-08  6:21 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 107821 Summary: ICE in gfc_conv_scalarized_array_ref, at fortran/trans-array.cc:3723
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107821

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (31 preceding siblings ...)
  2023-06-08  6:21 ` pault at gcc dot gnu.org
@ 2023-06-21 16:06 ` cvs-commit at gcc dot gnu.org
  2023-06-21 21:05 ` pault at gcc dot gnu.org
                   ` (9 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-06-21 16:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

https://gcc.gnu.org/g:577223aebc7acdd31e62b33c1682fe54a622ae27

commit r14-2022-g577223aebc7acdd31e62b33c1682fe54a622ae27
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Wed Jun 21 17:05:58 2023 +0100

    Fortran: Fix some bugs in associate [PR87477]

    2023-06-21  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/87477
            PR fortran/88688
            PR fortran/94380
            PR fortran/107900
            PR fortran/110224
            * decl.cc (char_len_param_value): Fix memory leak.
            (resolve_block_construct): Remove unnecessary static decls.
            * expr.cc (gfc_is_ptr_fcn): New function.
            (gfc_check_vardef_context): Use it to permit pointer function
            result selectors to be used for associate names in variable
            definition context.
            * gfortran.h: Prototype for gfc_is_ptr_fcn.
            * match.cc (build_associate_name): New function.
            (gfc_match_select_type): Use the new function to replace inline
            version and to build a new associate name for the case where
            the supplied associate name is already used for that purpose.
            * resolve.cc (resolve_assoc_var): Call gfc_is_ptr_fcn to allow
            associate names with pointer function targets to be used in
            variable definition context.
            * trans-decl.cc (gfc_get_symbol_decl): Unlimited polymorphic
            variables need deferred initialisation of the vptr.
            (gfc_trans_deferred_vars): Do the vptr initialisation.
            * trans-stmt.cc (trans_associate_var): Ensure that a pointer
            associate name points to the target of the selector and not
            the selector itself.

    gcc/testsuite/
            PR fortran/87477
            PR fortran/107900
            * gfortran.dg/pr107900.f90 : New test

            PR fortran/110224
            * gfortran.dg/pr110224.f90 : New test

            PR fortran/88688
            * gfortran.dg/pr88688.f90 : New test

            PR fortran/94380
            * gfortran.dg/pr94380.f90 : New test

            PR fortran/95398
            * gfortran.dg/pr95398.f90 : Set -std=f2008, bump the line
            numbers in the error tests by two and change the text in two.

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (32 preceding siblings ...)
  2023-06-21 16:06 ` cvs-commit at gcc dot gnu.org
@ 2023-06-21 21:05 ` pault at gcc dot gnu.org
  2023-06-21 21:05 ` pault at gcc dot gnu.org
                   ` (8 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-21 21:05 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 110224 Summary: Rejects valid: function reference with data pointer result as lhs in assignment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110224

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (33 preceding siblings ...)
  2023-06-21 21:05 ` pault at gcc dot gnu.org
@ 2023-06-21 21:05 ` pault at gcc dot gnu.org
  2023-06-28 16:39 ` pault at gcc dot gnu.org
                   ` (7 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-21 21:05 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 107900 Summary: Select type with intrinsic type inside associate causes ICE / Segmenation fault
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107900

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (34 preceding siblings ...)
  2023-06-21 21:05 ` pault at gcc dot gnu.org
@ 2023-06-28 16:39 ` pault at gcc dot gnu.org
  2023-08-27  8:51 ` cvs-commit at gcc dot gnu.org
                   ` (6 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-28 16:39 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 99065 Summary: ASSOCIATE function selector expression "no IMPLICIT type" failure
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99065

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (35 preceding siblings ...)
  2023-06-28 16:39 ` pault at gcc dot gnu.org
@ 2023-08-27  8:51 ` cvs-commit at gcc dot gnu.org
  2024-03-06 15:19 ` pault at gcc dot gnu.org
                   ` (5 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-08-27  8:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

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

commit r13-7761-gd6997a5aab7aaa325946a6283bfee8ac2bd9f540
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Sun Aug 27 09:51:32 2023 +0100

    Fortran: Fix some problems blocking associate meta-bug [PR87477]

    2023-08-27  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/87477
            * parse.cc (parse_associate): Replace the existing evaluation
            of the target rank with calls to gfc_resolve_ref and
            gfc_expression_rank. Identify untyped target function results
            with structure constructors by finding the appropriate derived
            type.
            * resolve.cc (resolve_symbol): Allow associate variables to be
            assumed shape.

    gcc/testsuite/
            PR fortran/87477
            * gfortran.dg/associate_54.f90 : Cope with extra error.

            PR fortran/102109
            * gfortran.dg/pr102109.f90 : New test.

            PR fortran/102112
            * gfortran.dg/pr102112.f90 : New test.

            PR fortran/102190
            * gfortran.dg/pr102190.f90 : New test.

            PR fortran/102532
            * gfortran.dg/pr102532.f90 : New test.

            PR fortran/109948
            * gfortran.dg/pr109948.f90 : New test.

            PR fortran/99326
            * gfortran.dg/pr99326.f90 : New test.

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (36 preceding siblings ...)
  2023-08-27  8:51 ` cvs-commit at gcc dot gnu.org
@ 2024-03-06 15:19 ` pault at gcc dot gnu.org
  2024-03-15  6:53 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2024-03-06 15:19 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 112834 Summary: Class array function selector causes chain of syntax and other spurious errors
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112834

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (37 preceding siblings ...)
  2024-03-06 15:19 ` pault at gcc dot gnu.org
@ 2024-03-15  6:53 ` cvs-commit at gcc dot gnu.org
  2024-03-15  7:07 ` pault at gcc dot gnu.org
                   ` (3 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-03-15  6:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

https://gcc.gnu.org/g:3fd46d859cda1074125449a4cc680ce59fcebc38

commit r14-9489-g3fd46d859cda1074125449a4cc680ce59fcebc38
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Fri Mar 15 06:52:59 2024 +0000

    Fortran: Fix class/derived/complex function associate selectors [PR87477]

    2024-03-15  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/87477
            PR fortran/89645
            PR fortran/99065
            PR fortran/114141
            PR fortran/114280
            * class.cc (gfc_change_class): New function needed for
            associate names, when rank changes or a derived type is
            produced by resolution
            * dump-parse-tree.cc (show_code_node): Make output for SELECT
            TYPE more comprehensible.
            * expr.cc (find_inquiry_ref): Do not simplify expressions of
            an inferred type.
            * gfortran.h : Add 'gfc_association_list' to structure
            'gfc_association_list'. Add prototypes for
            'gfc_find_derived_types', 'gfc_fixup_inferred_type_refs' and
            'gfc_change_class'. Add macro IS_INFERRED_TYPE.
            * match.cc (copy_ts_from_selector_to_associate): Add bolean arg
            'select_type' with default false. If this is a select type name
            and the selector is a inferred type, build the class type and
            apply it to the associate name.
            (build_associate_name): Pass true to 'select_type' in call to
            previous.
            * parse.cc (parse_associate): If the selector is inferred type
            the associate name is too. Make sure that function selector
            class and rank, if known, are passed to the associate name. If
            a function result exists, pass its typespec to the associate
            name.
            * primary.cc (resolvable_fcns): New function to check that all
            the function references are resolvable.
            (gfc_match_varspec): If a scalar derived type select type
            temporary has an array reference, match the array reference,
            treating this in the same way as an equivalence member. Do not
            set 'inquiry' if applied to an unknown type the inquiry name
            is ambiguous with the component of an accessible derived type.
            Check that resolution of the target expression is OK by testing
            if the symbol is declared or is an operator expression, then
            using 'resolvable_fcns' recursively. If all is well, resolve
            the expression. If this is an inferred type with a component
            reference, call 'gfc_find_derived_types' to find a suitable
            derived type. If there is an inquiry ref and the symbol either
            is of unknown type or is inferred to be a derived type, set the
            primary and symbol TKR appropriately.
            * resolve.cc (resolve_variable): Call new function below.
            (gfc_fixup_inferred_type_refs): New function to ensure that the
            expression references for a inferred type are consistent with
            the now fixed up selector.
            (resolve_assoc_var): Ensure that derived type or class function
            selectors transmit the correct arrayspec to the associate name.
            (resolve_select_type): If the selector is an associate name of
            inferred type and has no component references, the associate
            name should have its typespec. Simplify the conversion of a
            class array to class scalar by calling 'gfc_change_class'.
            Make sure that a class, inferred type selector with an array
            ref transfers the typespec from the symbol to the expression.
            * symbol.cc (gfc_set_default_type): If an associate name with
            unknown type has a selector expression, try resolving the expr.
            (find_derived_types, gfc_find_derived_types): New functions
            that search for a derived type with a given name.
            * trans-expr.cc (gfc_conv_variable): Some inferred type exprs
            escape resolution so call 'gfc_fixup_inferred_type_refs'.
            * trans-stmt.cc (trans_associate_var): Tidy up expression for
            'class_target'. Finalize and free class function results.
            Correctly handle selectors that are class functions and class
            array references, passed as derived types.

    gcc/testsuite/
            PR fortran/87477
            PR fortran/89645
            PR fortran/99065
            * gfortran.dg/associate_64.f90 : New test
            * gfortran.dg/associate_66.f90 : New test
            * gfortran.dg/associate_67.f90 : New test

            PR fortran/114141
            * gfortran.dg/associate_65.f90 : New test

            PR fortran/114280
            * gfortran.dg/associate_68.f90 : New test

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (38 preceding siblings ...)
  2024-03-15  6:53 ` cvs-commit at gcc dot gnu.org
@ 2024-03-15  7:07 ` pault at gcc dot gnu.org
  2024-03-15  7:09 ` pault at gcc dot gnu.org
                   ` (2 subsequent siblings)
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2024-03-15  7:07 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 89645 Summary: No IMPLICIT type error with: ASSOCIATE( X => function() )
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89645

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (39 preceding siblings ...)
  2024-03-15  7:07 ` pault at gcc dot gnu.org
@ 2024-03-15  7:09 ` pault at gcc dot gnu.org
  2024-04-03 18:56 ` anlauf at gcc dot gnu.org
  2024-04-04  6:27 ` pault at gcc dot gnu.org
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2024-03-15  7:09 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 114280 Summary: ASSOCIATE fails with inquiry references when selector function not yet parsed.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114280

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (40 preceding siblings ...)
  2024-03-15  7:09 ` pault at gcc dot gnu.org
@ 2024-04-03 18:56 ` anlauf at gcc dot gnu.org
  2024-04-04  6:27 ` pault at gcc dot gnu.org
  42 siblings, 0 replies; 43+ messages in thread
From: anlauf at gcc dot gnu.org @ 2024-04-03 18:56 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 113363 Summary: ICE on ASSOCIATE and unlimited polymorphic function
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113363

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

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

* [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement
       [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
                   ` (41 preceding siblings ...)
  2024-04-03 18:56 ` anlauf at gcc dot gnu.org
@ 2024-04-04  6:27 ` pault at gcc dot gnu.org
  42 siblings, 0 replies; 43+ messages in thread
From: pault at gcc dot gnu.org @ 2024-04-04  6:27 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 113363 Summary: ICE on ASSOCIATE and unlimited polymorphic function
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113363

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

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

end of thread, other threads:[~2024-04-04  6:27 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-87477-4@http.gcc.gnu.org/bugzilla/>
2020-07-05 18:32 ` [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement anlauf at gcc dot gnu.org
2021-09-10 20:08 ` anlauf at gcc dot gnu.org
2023-02-11 18:20 ` anlauf at gcc dot gnu.org
2023-03-29  8:45 ` pault at gcc dot gnu.org
2023-04-08  8:04 ` cvs-commit at gcc dot gnu.org
2023-04-08  9:29 ` pault at gcc dot gnu.org
2023-04-08  9:30 ` pault at gcc dot gnu.org
2023-04-08  9:31 ` pault at gcc dot gnu.org
2023-04-08  9:31 ` pault at gcc dot gnu.org
2023-04-08  9:32 ` pault at gcc dot gnu.org
2023-04-08  9:32 ` pault at gcc dot gnu.org
2023-04-08  9:33 ` pault at gcc dot gnu.org
2023-04-08  9:35 ` pault at gcc dot gnu.org
2023-04-08 13:00 ` pault at gcc dot gnu.org
2023-06-01 13:52 ` pault at gcc dot gnu.org
2023-06-02  7:41 ` cvs-commit at gcc dot gnu.org
2023-06-02  7:52 ` pault at gcc dot gnu.org
2023-06-02  7:59 ` pault at gcc dot gnu.org
2023-06-02  8:02 ` pault at gcc dot gnu.org
2023-06-02  8:16 ` pault at gcc dot gnu.org
2023-06-02  8:24 ` pault at gcc dot gnu.org
2023-06-02  8:28 ` pault at gcc dot gnu.org
2023-06-02  8:40 ` pault at gcc dot gnu.org
2023-06-02  8:41 ` pault at gcc dot gnu.org
2023-06-02  8:42 ` pault at gcc dot gnu.org
2023-06-02  8:44 ` pault at gcc dot gnu.org
2023-06-02  8:52 ` pault at gcc dot gnu.org
2023-06-02  8:55 ` pault at gcc dot gnu.org
2023-06-02  9:16 ` pault at gcc dot gnu.org
2023-06-08  6:11 ` cvs-commit at gcc dot gnu.org
2023-06-08  6:20 ` pault at gcc dot gnu.org
2023-06-08  6:21 ` pault at gcc dot gnu.org
2023-06-21 16:06 ` cvs-commit at gcc dot gnu.org
2023-06-21 21:05 ` pault at gcc dot gnu.org
2023-06-21 21:05 ` pault at gcc dot gnu.org
2023-06-28 16:39 ` pault at gcc dot gnu.org
2023-08-27  8:51 ` cvs-commit at gcc dot gnu.org
2024-03-06 15:19 ` pault at gcc dot gnu.org
2024-03-15  6:53 ` cvs-commit at gcc dot gnu.org
2024-03-15  7:07 ` pault at gcc dot gnu.org
2024-03-15  7:09 ` pault at gcc dot gnu.org
2024-04-03 18:56 ` anlauf at gcc dot gnu.org
2024-04-04  6:27 ` pault 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).