[Bug fortran/95586] ICE in gfc_validate_kind, at fortran/trans-types.c:773

2020-06-23 Thread markeggleston at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95586

markeggleston at gcc dot gnu.org changed:

   What|Removed |Added

 CC||markeggleston at gcc dot 
gnu.org
 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #4 from markeggleston at gcc dot gnu.org ---
Committed to master.

[Bug fortran/95586] ICE in gfc_validate_kind, at fortran/trans-types.c:773

2020-06-23 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95586

--- Comment #3 from CVS Commits  ---
The master branch has been updated by Mark Eggleston
:

https://gcc.gnu.org/g:384aa890255dc01ba6d6529b127975c2c9a49a3c

commit r11-1594-g384aa890255dc01ba6d6529b127975c2c9a49a3c
Author: Mark Eggleston 
Date:   Wed Jun 10 16:18:23 2020 +0100

Fortran  :  ICE in gfc_validate_kind PR95586

Report syntax error for invalid letter-spec in IMPLICIT statements
for derived types and not an ICE.

Original patch by Steve Kargl.  Added test cases based on those
provided by G. Steinmetz  in the PR.

2020-06-23  Steven G. Kargl  

gcc/fortran/

PR fortran/95586
* decl.c (gfc_match_implicit): Only perform else branch if
the type spect is not BT_DERIVED.

2020-06-23  Mark Eggleston  

gcc/testsuite/

PR fortran/95586
* gfortran.dg/pr95586_1.f90: New test.
* gfortran.dg/pr95586_2.f90: New test.

[Bug fortran/95586] ICE in gfc_validate_kind, at fortran/trans-types.c:773

2020-06-08 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95586

kargl at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P4
 CC||kargl at gcc dot gnu.org

--- Comment #2 from kargl at gcc dot gnu.org ---
Index: gcc/fortran/decl.c
===
--- gcc/fortran/decl.c  (revision 280157)
+++ gcc/fortran/decl.c  (working copy)
@@ -4764,7 +4764,7 @@ gfc_match_implicit (void)
   /* Last chance -- check   ().  */
   if (ts.type == BT_CHARACTER)
m = gfc_match_char_spec ();
-  else
+  else if (ts.type != BT_DERIVED)
{
  m = gfc_match_kind_spec (, false);
  if (m == MATCH_NO)

[Bug fortran/95586] ICE in gfc_validate_kind, at fortran/trans-types.c:773

2020-06-08 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95586

Dominique d'Humieres  changed:

   What|Removed |Added

   Last reconfirmed||2020-06-08
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #1 from Dominique d'Humieres  ---
Confirmed.