public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/99817] New: [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.)
@ 2021-03-29 19:29 gscfq@t-online.de
  2021-03-29 19:29 ` [Bug fortran/99817] " gscfq@t-online.de
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gscfq@t-online.de @ 2021-03-29 19:29 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99817
           Summary: [10/11 Regression] ICE in create_function_arglist, at
                    fortran/trans-decl.c:2838 (etc.)
           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 20210314 and 20210328 :


$ cat z1.f90
subroutine s1 (x)
   character(*) :: x(*)[*]
end


$ cat z2.f90
subroutine s2 (x)
   character(*), dimension(*), codimension[*] :: x
   integer :: i
   i = len(x)
end


$ gfortran-11-20210314 -c z1.f90 -fcoarray=lib
$ gfortran-11-20210314 -c z1.f90 -fcoarray=single
$ gfortran-11-20210328 -c z1.f90 -fcoarray=single
$
$ gfortran-11-20210328 -c z1.f90 -fcoarray=lib
z1.f90:1:13:

    1 | subroutine s1 (x)
      |             1
internal compiler error: Segmentation fault
0xc09d4f crash_signal
        ../../gcc/toplev.c:327
0x754ed9 create_function_arglist
        ../../gcc/fortran/trans-decl.c:2838
0x75a153 gfc_create_function_decl(gfc_namespace*, bool)
        ../../gcc/fortran/trans-decl.c:3089
0x7603b6 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6778
0x6e5de6 translate_all_program_units
        ../../gcc/fortran/parse.c:6351
0x6e5de6 gfc_parse_file()
        ../../gcc/fortran/parse.c:6620
0x7320ef gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

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

* [Bug fortran/99817] [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.)
  2021-03-29 19:29 [Bug fortran/99817] New: [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.) gscfq@t-online.de
@ 2021-03-29 19:29 ` gscfq@t-online.de
  2021-03-29 20:12 ` dominiq at lps dot ens.fr
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: gscfq@t-online.de @ 2021-03-29 19:29 UTC (permalink / raw)
  To: gcc-bugs

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

G. Steinmetz <gscfq@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code

--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---

Related variants :


$ cat z3.f90
subroutine s3 (x, y)
   character(*), dimension(:) :: x[*]
   character(*) :: y
end


$ cat z4.f90
subroutine s4 (x, y, z)
   character(*), dimension(:) :: x[2, *]
   character(*), dimension(*) :: y
   character(*) :: z
end


$ gfortran-11-20210328 -c z3.f90 -fcoarray=lib
z3.f90:1:13:

    1 | subroutine s3 (x, y)
      |             1
internal compiler error: Segmentation fault
0xc09d4f crash_signal
        ../../gcc/toplev.c:327
0x754bd9 create_function_arglist
        ../../gcc/fortran/trans-decl.c:2625
#...


$ gfortran-11-20210328 -c z4.f90 -fcoarray=lib
z4.f90:1:13:

    1 | subroutine s4 (x, y, z)
      |             1
internal compiler error: in create_function_arglist, at
fortran/trans-decl.c:2628
0x75539e create_function_arglist
        ../../gcc/fortran/trans-decl.c:2628
#...

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

* [Bug fortran/99817] [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.)
  2021-03-29 19:29 [Bug fortran/99817] New: [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.) gscfq@t-online.de
  2021-03-29 19:29 ` [Bug fortran/99817] " gscfq@t-online.de
@ 2021-03-29 20:12 ` dominiq at lps dot ens.fr
  2021-03-30 13:08 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2021-03-29 20:12 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           Priority|P3                          |P4
   Last reconfirmed|                            |2021-03-29
             Status|UNCONFIRMED                 |NEW

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

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

* [Bug fortran/99817] [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.)
  2021-03-29 19:29 [Bug fortran/99817] New: [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.) gscfq@t-online.de
  2021-03-29 19:29 ` [Bug fortran/99817] " gscfq@t-online.de
  2021-03-29 20:12 ` dominiq at lps dot ens.fr
@ 2021-03-30 13:08 ` rguenth at gcc dot gnu.org
  2021-03-30 19:32 ` anlauf at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-03-30 13:08 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.3

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

* [Bug fortran/99817] [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.)
  2021-03-29 19:29 [Bug fortran/99817] New: [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.) gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2021-03-30 13:08 ` rguenth at gcc dot gnu.org
@ 2021-03-30 19:32 ` anlauf at gcc dot gnu.org
  2021-04-08 12:02 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-03-30 19:32 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gcc dot gnu.org,
                   |                            |burnus at gcc dot gnu.org

--- Comment #3 from anlauf at gcc dot gnu.org ---
The ICE happens in

Program received signal SIGSEGV, Segmentation fault.
create_function_arglist (sym=<optimized out>)
    at ../../gcc-trunk/gcc/fortran/trans-decl.c:2838
2838              hidden_typelist = TREE_CHAIN (hidden_typelist);
(gdb) 

git blame points to:

commit 212f4988f37ccf788c8c72b1dc952980bc9be3b7
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Tue Mar 23 15:45:36 2021 +0100

    Fortran: Fix func decl mismatch [PR93660]

Adding Tobias.

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

* [Bug fortran/99817] [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.)
  2021-03-29 19:29 [Bug fortran/99817] New: [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.) gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2021-03-30 19:32 ` anlauf at gcc dot gnu.org
@ 2021-04-08 12:02 ` rguenth at gcc dot gnu.org
  2021-04-09  8:42 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-08 12:02 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.3                        |10.4

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10.3 is being released, retargeting bugs to GCC 10.4.

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

* [Bug fortran/99817] [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.)
  2021-03-29 19:29 [Bug fortran/99817] New: [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.) gscfq@t-online.de
                   ` (4 preceding siblings ...)
  2021-04-08 12:02 ` rguenth at gcc dot gnu.org
@ 2021-04-09  8:42 ` cvs-commit at gcc dot gnu.org
  2021-04-12 11:02 ` cvs-commit at gcc dot gnu.org
  2021-04-12 11:04 ` burnus at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-09  8:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

commit r11-8076-gd31f485dedc86773152d0384bc6ba5583b259a42
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Fri Apr 9 10:18:24 2021 +0200

    Fortran: Fix fndecl with -fcoarray=lib [PR99817]

    gcc/fortran/ChangeLog:

            PR fortran/99817
            * trans-types.c (gfc_get_function_type): Also generate hidden
            coarray argument for character arguments.

    gcc/testsuite/ChangeLog:

            PR fortran/99817
            * gfortran.dg/coarray/dummy_2.f90: New test.

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

* [Bug fortran/99817] [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.)
  2021-03-29 19:29 [Bug fortran/99817] New: [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.) gscfq@t-online.de
                   ` (5 preceding siblings ...)
  2021-04-09  8:42 ` cvs-commit at gcc dot gnu.org
@ 2021-04-12 11:02 ` cvs-commit at gcc dot gnu.org
  2021-04-12 11:04 ` burnus at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-12 11:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Tobias Burnus
<burnus@gcc.gnu.org>:

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

commit r10-9697-ge976dc67ac5b0f6e9ea5e7e0e4f99c40e5abcd28
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Fri Apr 9 10:18:24 2021 +0200

    Fortran: Fix fndecl with -fcoarray=lib [PR99817]

    gcc/fortran/ChangeLog:

            PR fortran/99817
            * trans-types.c (gfc_get_function_type): Also generate hidden
            coarray argument for character arguments.

    gcc/testsuite/ChangeLog:

            PR fortran/99817
            * gfortran.dg/coarray/dummy_2.f90: New test.

    (cherry picked from commit d31f485dedc86773152d0384bc6ba5583b259a42)

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

* [Bug fortran/99817] [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.)
  2021-03-29 19:29 [Bug fortran/99817] New: [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.) gscfq@t-online.de
                   ` (6 preceding siblings ...)
  2021-04-12 11:02 ` cvs-commit at gcc dot gnu.org
@ 2021-04-12 11:04 ` burnus at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu.org @ 2021-04-12 11:04 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

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

--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> ---
FIXED (GCC 10+mainline/11) - thanks for the report.

Unfortunately, it (just) did miss the GCC 10.3 release.

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

end of thread, other threads:[~2021-04-12 11:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29 19:29 [Bug fortran/99817] New: [10/11 Regression] ICE in create_function_arglist, at fortran/trans-decl.c:2838 (etc.) gscfq@t-online.de
2021-03-29 19:29 ` [Bug fortran/99817] " gscfq@t-online.de
2021-03-29 20:12 ` dominiq at lps dot ens.fr
2021-03-30 13:08 ` rguenth at gcc dot gnu.org
2021-03-30 19:32 ` anlauf at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2021-04-09  8:42 ` cvs-commit at gcc dot gnu.org
2021-04-12 11:02 ` cvs-commit at gcc dot gnu.org
2021-04-12 11:04 ` burnus 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).