[Bug fortran/91588] ICE in check_inquiry, at fortran/expr.c:2673

2019-09-28 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91588

Paul Thomas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Paul Thomas  ---
Fixed on 8- through 10-branches.

Thanks for the report.

Paul

[Bug fortran/91588] ICE in check_inquiry, at fortran/expr.c:2673

2019-09-28 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91588

--- Comment #6 from Paul Thomas  ---
Author: pault
Date: Sat Sep 28 15:48:35 2019
New Revision: 276252

URL: https://gcc.gnu.org/viewcvs?rev=276252=gcc=rev
Log:
2019-09-28  Paul Thomas  

Backport from mainline
PR fortran/91588
* expr.c (check_inquiry): Remove extended component refs by
using symbol pointers. If a function argument is an associate
variable with a constant target, copy the target expression in
place of the argument expression. Check that the charlen is not
NULL before using the string length.

2019-09-28  Paul Thomas  

Backport from mainline
PR fortran/91588
* gfortran.dg/associate_49.f90 : New test.


Added:
branches/gcc-8-branch/gcc/testsuite/gfortran.dg/associate_49.f90
Modified:
branches/gcc-8-branch/gcc/fortran/ChangeLog
branches/gcc-8-branch/gcc/fortran/expr.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog

[Bug fortran/91588] ICE in check_inquiry, at fortran/expr.c:2673

2019-09-21 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91588

--- Comment #5 from Paul Thomas  ---
Author: pault
Date: Sat Sep 21 08:35:17 2019
New Revision: 276016

URL: https://gcc.gnu.org/viewcvs?rev=276016=gcc=rev
Log:
2019-09-21  Paul Thomas  

Backport from mainline
PR fortran/91588
* expr.c (check_inquiry): Remove extended component refs by
using symbol pointers. If a function argument is an associate
variable with a constant target, copy the target expression in
place of the argument expression. Check that the charlen is not
NULL before using the string length.

2019-09-21  Paul Thomas  

Backport from mainline
PR fortran/91588
* gfortran.dg/associate_49.f90 : New test.


Added:
branches/gcc-9-branch/gcc/testsuite/gfortran.dg/associate_49.f90
Modified:
branches/gcc-9-branch/gcc/fortran/ChangeLog
branches/gcc-9-branch/gcc/fortran/expr.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog

[Bug fortran/91588] ICE in check_inquiry, at fortran/expr.c:2673

2019-09-17 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91588

--- Comment #4 from Paul Thomas  ---
Author: pault
Date: Tue Sep 17 08:30:50 2019
New Revision: 275800

URL: https://gcc.gnu.org/viewcvs?rev=275800=gcc=rev
Log:
2019-09-17  Paul Thomas  

PR fortran/91588
* expr.c (check_inquiry): Remove extended component refs by
using symbol pointers. If a function argument is an associate
variable with a constant target, copy the target expression in
place of the argument expression. Check that the charlen is not
NULL before using the string length.
(gfc_check_assign): Remove extraneous space.

2019-09-17  Paul Thomas  

PR fortran/91588
* gfortran.dg/associate_49.f90 : New test.


Added:
trunk/gcc/testsuite/gfortran.dg/associate_49.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/expr.c
trunk/gcc/testsuite/ChangeLog

[Bug fortran/91588] ICE in check_inquiry, at fortran/expr.c:2673

2019-09-15 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91588

Paul Thomas  changed:

   What|Removed |Added

 CC||pault at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |pault at gcc dot gnu.org

--- Comment #3 from Paul Thomas  ---
Created attachment 46883
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46883=edit
Patch for the PR

Regtests OK.

Paul

[Bug fortran/91588] ICE in check_inquiry, at fortran/expr.c:2673

2019-09-03 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91588

Dominique d'Humieres  changed:

   What|Removed |Added

   Priority|P3  |P4
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2019-09-03
 Ever confirmed|0   |1

--- Comment #2 from Dominique d'Humieres  ---
> Also an old issue, ICEs down to at least gfortran-5.

down to at least gfortran-4.8.

[Bug fortran/91588] ICE in check_inquiry, at fortran/expr.c:2673

2019-08-28 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91588

G. Steinmetz  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code

--- Comment #1 from G. Steinmetz  ---

Catches this invalid variant :


$ cat z2.f90
program p
   character(3) :: z = '123'
   block
  integer(len(z)) :: a
  print *, kind(a)
   end block
end


$ gfortran-10-20190825 -c z2.f90
z2.f90:4:20:

4 |   integer(len(z)) :: a
  |1
Error: Kind 3 not supported for type INTEGER at (1)