public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/96100] New: [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638
@ 2020-07-07 17:17 gscfq@t-online.de
  2020-07-07 18:25 ` [Bug fortran/96100] " dominiq at lps dot ens.fr
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gscfq@t-online.de @ 2020-07-07 17:17 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96100
           Summary: [9/10/11 Regression] ICE in gimplify_expr, at
                    gimplify.c:14638
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20190310 and 20190331, r8 compiles it :


$ cat z1.f90
program p
   type t
      character(:), allocatable :: c(:)
   end type
   type(t) :: x
   associate (y => [x%c(1:1)])
   end associate
end


$ gfortran-8 -c z1.f90
$
$ gfortran-11-20200705 -c z1.f90
z1.f90:6:0:

    6 |    associate (y => [x%c(1:1)])
      |
internal compiler error: in gimplify_expr, at gimplify.c:14638
0x95f096 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:14638
0x9681f9 gimplify_modify_expr
        ../../gcc/gimplify.c:5779
0x95e923 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:13637
0x960a58 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6822
0x95e6f3 gimplify_statement_list
        ../../gcc/gimplify.c:1856
0x95e6f3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:14081
0x960a58 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6822
0x95e50a gimplify_and_add(tree_node*, gimple**)
        ../../gcc/gimplify.c:486
0x95e50a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:13988
0x960a58 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6822
0x9613c1 gimplify_bind_expr
        ../../gcc/gimplify.c:1411
0x95eb52 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:13838
0x960a58 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6822
0x95e6f3 gimplify_statement_list
        ../../gcc/gimplify.c:1856
0x95e6f3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:14081
0x960a58 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6822
0x9613c1 gimplify_bind_expr
        ../../gcc/gimplify.c:1411
0x95eb52 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:13838
0x960a58 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6822
0x961e39 gimplify_body(tree_node*, bool)
        ../../gcc/gimplify.c:14873

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

* [Bug fortran/96100] [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638
  2020-07-07 17:17 [Bug fortran/96100] New: [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638 gscfq@t-online.de
@ 2020-07-07 18:25 ` dominiq at lps dot ens.fr
  2020-07-08  7:29 ` marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2020-07-07 18:25 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |9.4
   Last reconfirmed|                            |2020-07-07
             Status|UNCONFIRMED                 |NEW
           Priority|P3                          |P4
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed.

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

* [Bug fortran/96100] [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638
  2020-07-07 17:17 [Bug fortran/96100] New: [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638 gscfq@t-online.de
  2020-07-07 18:25 ` [Bug fortran/96100] " dominiq at lps dot ens.fr
@ 2020-07-08  7:29 ` marxin at gcc dot gnu.org
  2020-08-20 17:18 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-07-08  7:29 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |pault at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r9-6726-gd5f48c7c62d3d8cf.

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

* [Bug fortran/96100] [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638
  2020-07-07 17:17 [Bug fortran/96100] New: [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638 gscfq@t-online.de
  2020-07-07 18:25 ` [Bug fortran/96100] " dominiq at lps dot ens.fr
  2020-07-08  7:29 ` marxin at gcc dot gnu.org
@ 2020-08-20 17:18 ` cvs-commit at gcc dot gnu.org
  2020-12-28 14:56 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-08-20 17:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- 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:300ef2fcc10e98359d14654be23bbb84a5d141e1

commit r11-2785-g300ef2fcc10e98359d14654be23bbb84a5d141e1
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Thu Aug 20 18:17:59 2020 +0100

    This patch fixes PRs 96100 and 96101.

    2020-08-20  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/96100
            PR fortran/96101
            * trans-array.c (get_array_charlen): Tidy up the evaluation of
            the string length for array constructors. Avoid trailing array
            references. Ensure string lengths of deferred length components
            are set. For parentheses operator apply string  length to both
            the primary expression and the enclosed expression.

    gcc/testsuite/
            PR fortran/96100
            PR fortran/96101
            * gfortran.dg/char_length_23.f90: New test.

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

* [Bug fortran/96100] [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638
  2020-07-07 17:17 [Bug fortran/96100] New: [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2020-08-20 17:18 ` cvs-commit at gcc dot gnu.org
@ 2020-12-28 14:56 ` cvs-commit at gcc dot gnu.org
  2020-12-28 15:16 ` cvs-commit at gcc dot gnu.org
  2020-12-28 16:53 ` pault at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-28 14:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

https://gcc.gnu.org/g:47c1d976146913fad43688d45727d0038de174c7

commit r10-9181-g47c1d976146913fad43688d45727d0038de174c7
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Thu Aug 20 18:17:59 2020 +0100

    This patch fixes PRs 96100 and 96101.

    2020-08-20  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/96100
            PR fortran/96101
            * trans-array.c (get_array_charlen): Tidy up the evaluation of
            the string length for array constructors. Avoid trailing array
            references. Ensure string lengths of deferred length components
            are set. For parentheses operator apply string  length to both
            the primary expression and the enclosed expression.

    gcc/testsuite/
            PR fortran/96100
            PR fortran/96101
            * gfortran.dg/char_length_23.f90: New test.

    (cherry picked from commit 300ef2fcc10e98359d14654be23bbb84a5d141e1)

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

* [Bug fortran/96100] [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638
  2020-07-07 17:17 [Bug fortran/96100] New: [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2020-12-28 14:56 ` cvs-commit at gcc dot gnu.org
@ 2020-12-28 15:16 ` cvs-commit at gcc dot gnu.org
  2020-12-28 16:53 ` pault at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-28 15:16 UTC (permalink / raw)
  To: gcc-bugs

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

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

https://gcc.gnu.org/g:9db58db5b3986531475968dd383f13a3f925d7ae

commit r9-9136-g9db58db5b3986531475968dd383f13a3f925d7ae
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Thu Aug 20 18:17:59 2020 +0100

    This patch fixes PRs 96100 and 96101.

    2020-08-20  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/96100
            PR fortran/96101
            * trans-array.c (get_array_charlen): Tidy up the evaluation of
            the string length for array constructors. Avoid trailing array
            references. Ensure string lengths of deferred length components
            are set. For parentheses operator apply string  length to both
            the primary expression and the enclosed expression.

    gcc/testsuite/
            PR fortran/96100
            PR fortran/96101
            * gfortran.dg/char_length_23.f90: New test.

    (cherry picked from commit 300ef2fcc10e98359d14654be23bbb84a5d141e1)

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

* [Bug fortran/96100] [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638
  2020-07-07 17:17 [Bug fortran/96100] New: [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638 gscfq@t-online.de
                   ` (4 preceding siblings ...)
  2020-12-28 15:16 ` cvs-commit at gcc dot gnu.org
@ 2020-12-28 16:53 ` pault at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu.org @ 2020-12-28 16:53 UTC (permalink / raw)
  To: gcc-bugs

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

Paul Thomas <pault at gcc dot gnu.org> changed:

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

--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> ---
Fixed on 9-11 branches.

Thanks for the report

Paul

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

end of thread, other threads:[~2020-12-28 16:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 17:17 [Bug fortran/96100] New: [9/10/11 Regression] ICE in gimplify_expr, at gimplify.c:14638 gscfq@t-online.de
2020-07-07 18:25 ` [Bug fortran/96100] " dominiq at lps dot ens.fr
2020-07-08  7:29 ` marxin at gcc dot gnu.org
2020-08-20 17:18 ` cvs-commit at gcc dot gnu.org
2020-12-28 14:56 ` cvs-commit at gcc dot gnu.org
2020-12-28 15:16 ` cvs-commit at gcc dot gnu.org
2020-12-28 16:53 ` 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).