[Bug fortran/100029] ICE on subroutine call with allocatable polymorphic assumed-rank argument

2022-10-08 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100029

anlauf at gcc dot gnu.org changed:

   What|Removed |Added

 Resolution|--- |FIXED
   Target Milestone|--- |10.5
 Status|ASSIGNED|RESOLVED

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

Thanks for the patch!

[Bug fortran/100029] ICE on subroutine call with allocatable polymorphic assumed-rank argument

2022-10-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100029

--- Comment #7 from CVS Commits  ---
The releases/gcc-10 branch has been updated by Harald Anlauf
:

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

commit r10-11024-ga880f9a44ecad385d4273f96f76c5c900d716941
Author: José Rui Faustino de Sousa 
Date:   Sun Sep 25 22:48:55 2022 +0200

Fortran: Fix ICE and wrong code for assumed-rank arrays [PR100029,
PR100040]

gcc/fortran/ChangeLog:

PR fortran/100040
PR fortran/100029
* trans-expr.c (gfc_conv_class_to_class): Add code to have
assumed-rank arrays recognized as full arrays and fix the type
of the array assignment.
(gfc_conv_procedure_call): Change order of code blocks such that
the free of ALLOCATABLE dummy arguments with INTENT(OUT) occurs
first.

gcc/testsuite/ChangeLog:

PR fortran/100029
* gfortran.dg/PR100029.f90: New test.

PR fortran/100040
* gfortran.dg/PR100040.f90: New test.

(cherry picked from commit 5299155bb80e90df822e1eebc9f9a0c8e4505a46)

[Bug fortran/100029] ICE on subroutine call with allocatable polymorphic assumed-rank argument

2022-10-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100029

--- Comment #6 from CVS Commits  ---
The releases/gcc-11 branch has been updated by Harald Anlauf
:

https://gcc.gnu.org/g:1167c14d598021581e984cbe46273ade4bc54126

commit r11-10295-g1167c14d598021581e984cbe46273ade4bc54126
Author: José Rui Faustino de Sousa 
Date:   Sun Sep 25 22:48:55 2022 +0200

Fortran: Fix ICE and wrong code for assumed-rank arrays [PR100029,
PR100040]

gcc/fortran/ChangeLog:

PR fortran/100040
PR fortran/100029
* trans-expr.c (gfc_conv_class_to_class): Add code to have
assumed-rank arrays recognized as full arrays and fix the type
of the array assignment.
(gfc_conv_procedure_call): Change order of code blocks such that
the free of ALLOCATABLE dummy arguments with INTENT(OUT) occurs
first.

gcc/testsuite/ChangeLog:

PR fortran/100029
* gfortran.dg/PR100029.f90: New test.

PR fortran/100040
* gfortran.dg/PR100040.f90: New test.

(cherry picked from commit 5299155bb80e90df822e1eebc9f9a0c8e4505a46)

[Bug fortran/100029] ICE on subroutine call with allocatable polymorphic assumed-rank argument

2022-10-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100029

--- Comment #5 from CVS Commits  ---
The releases/gcc-12 branch has been updated by Harald Anlauf
:

https://gcc.gnu.org/g:07da38566232cc11901c3eeb9fc2860f02f2e31f

commit r12-8813-g07da38566232cc11901c3eeb9fc2860f02f2e31f
Author: José Rui Faustino de Sousa 
Date:   Sun Sep 25 22:48:55 2022 +0200

Fortran: Fix ICE and wrong code for assumed-rank arrays [PR100029,
PR100040]

gcc/fortran/ChangeLog:

PR fortran/100040
PR fortran/100029
* trans-expr.cc (gfc_conv_class_to_class): Add code to have
assumed-rank arrays recognized as full arrays and fix the type
of the array assignment.
(gfc_conv_procedure_call): Change order of code blocks such that
the free of ALLOCATABLE dummy arguments with INTENT(OUT) occurs
first.

gcc/testsuite/ChangeLog:

PR fortran/100029
* gfortran.dg/PR100029.f90: New test.

PR fortran/100040
* gfortran.dg/PR100040.f90: New test.

(cherry picked from commit 5299155bb80e90df822e1eebc9f9a0c8e4505a46)

[Bug fortran/100029] ICE on subroutine call with allocatable polymorphic assumed-rank argument

2022-10-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100029

--- Comment #4 from CVS Commits  ---
The master branch has been updated by Harald Anlauf :

https://gcc.gnu.org/g:5299155bb80e90df822e1eebc9f9a0c8e4505a46

commit r13-3014-g5299155bb80e90df822e1eebc9f9a0c8e4505a46
Author: José Rui Faustino de Sousa 
Date:   Sun Sep 25 22:48:55 2022 +0200

Fortran: Fix ICE and wrong code for assumed-rank arrays [PR100029,
PR100040]

gcc/fortran/ChangeLog:

PR fortran/100040
PR fortran/100029
* trans-expr.cc (gfc_conv_class_to_class): Add code to have
assumed-rank arrays recognized as full arrays and fix the type
of the array assignment.
(gfc_conv_procedure_call): Change order of code blocks such that
the free of ALLOCATABLE dummy arguments with INTENT(OUT) occurs
first.

gcc/testsuite/ChangeLog:

PR fortran/100029
* gfortran.dg/PR100029.f90: New test.

PR fortran/100040
* gfortran.dg/PR100040.f90: New test.

[Bug fortran/100029] ICE on subroutine call with allocatable polymorphic assumed-rank argument

2022-09-25 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100029

anlauf at gcc dot gnu.org changed:

   What|Removed |Added

 CC||anlauf at gcc dot gnu.org

--- Comment #3 from anlauf at gcc dot gnu.org ---
Rebased patch pinged here:

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

[Bug fortran/100029] ICE on subroutine call with allocatable polymorphic assumed-rank argument

2021-06-18 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100029

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED

[Bug fortran/100029] ICE on subroutine call with allocatable polymorphic assumed-rank argument

2021-04-16 Thread jrfsousa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100029

--- Comment #2 from José Rui Faustino de Sousa  ---
Patch posted.

https://gcc.gnu.org/pipermail/fortran/2021-April/055924.html

[Bug fortran/100029] ICE on subroutine call with allocatable polymorphic assumed-rank argument

2021-04-14 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100029

Dominique d'Humieres  changed:

   What|Removed |Added

   Last reconfirmed||2021-04-14
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #1 from Dominique d'Humieres  ---
Confirmed since at least GCC7.