[Bug fortran/93484] [8/9/10 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120 since r7-4028-g87c9fca50cbe7ca9
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93484 markeggleston at gcc dot gnu.org changed: What|Removed |Added CC||markeggleston at gcc dot gnu.org Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #7 from markeggleston at gcc dot gnu.org --- committed to master and backported to gcc-9 and gcc-8
[Bug fortran/93484] [8/9/10 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120 since r7-4028-g87c9fca50cbe7ca9
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93484 --- Comment #6 from CVS Commits --- The releases/gcc-8 branch has been updated by Mark Eggleston : https://gcc.gnu.org/g:2cc686897cc4d9935d4c8302af67565fa54c0aec commit r8-10142-g2cc686897cc4d9935d4c8302af67565fa54c0aec Author: Mark Eggleston Date: Wed Mar 25 15:10:03 2020 + fortran: ICE using undeclared symbol in array constructor PR93484 Using undeclared symbol k in an expression in the following array constructor results in an ICE: print *, [real(x(k))] If the call to the intrinsic is not in a constructor a no IMPLICIT type error is reported and the ICE does not occur. Matching on an expression instead of an initialisation express an and not converting a MATCH_ERROR return value into MATCH_NO results in the no IMPLICIT error and no ICE. Note: Steven G. Kargl is the author of the changes except for the test cases. gcc/fortran/ChangeLog: Backport from master 2020-03-25 Mark Eggleston PR fortran/93484 * match.c (gfc_match_type_spec): Replace gfc_match_init_expr with gfc_match_expr. Return m if m is MATCH_NO or MATCH_ERROR. gcc/testsuite Backport from master 2020-03-25 Mark Eggleston PR fortran/93484 * gfortran.dg/pr93484_1.f90: New test. * gfortran.dg/pr93484_2.f90: New test.
[Bug fortran/93484] [8/9/10 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120 since r7-4028-g87c9fca50cbe7ca9
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93484 --- Comment #5 from CVS Commits --- The releases/gcc-9 branch has been updated by Mark Eggleston : https://gcc.gnu.org/g:dff885cdc00bbdccb5bb6277e4711093e3bbad1e commit r9-8416-gdff885cdc00bbdccb5bb6277e4711093e3bbad1e Author: Mark Eggleston Date: Wed Mar 25 13:43:23 2020 + fortran: ICE using undeclared symbol in array constructor PR93484 Using undeclared symbol k in an expression in the following array constructor results in an ICE: print *, [real(x(k))] If the call to the intrinsic is not in a constructor a no IMPLICIT type error is reported and the ICE does not occur. Matching on an expression instead of an initialisation express an and not converting a MATCH_ERROR return value into MATCH_NO results in the no IMPLICIT error and no ICE. Note: Steven G. Kargl is the author of the changes except for the test cases. gcc/fortran/ChangeLog: Backport from master 2020-03-25 Mark Eggleston PR fortran/93484 * match.c (gfc_match_type_spec): Replace gfc_match_init_expr with gfc_match_expr. Return m if m is MATCH_NO or MATCH_ERROR. gcc/testsuite Backport from master 2020-03-25 Mark Eggleston PR fortran/93484 * gfortran.dg/pr93484_1.f90: New test. * gfortran.dg/pr93484_2.f90: New test.
[Bug fortran/93484] [8/9/10 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120 since r7-4028-g87c9fca50cbe7ca9
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93484 --- Comment #4 from CVS Commits --- The master branch has been updated by Mark Eggleston : https://gcc.gnu.org/g:c38daa7976886a59a3cd496b5c776d75f3cdb056 commit r10-7369-gc38daa7976886a59a3cd496b5c776d75f3cdb056 Author: Mark Eggleston Date: Wed Mar 25 08:33:03 2020 + fortran: ICE using undeclared symbol in array constructor PR93484 Using undeclared symbol k in an expression in the following array constructor results in an ICE: print *, [real(x(k))] If the call to the intrinsic is not in a constructor a no IMPLICIT type error is reported and the ICE does not occur. Matching on an expression instead of an initialisation express an and not converting a MATCH_ERROR return value into MATCH_NO results in the no IMPLICIT error and no ICE. Note: Steven G. Kargl is the author of the changes except for the test cases. gcc/fortran/ChangeLog: PR fortran/93484 * match.c (gfc_match_type_spec): Replace gfc_match_init_expr with gfc_match_expr. Return m if m is MATCH_NO or MATCH_ERROR. gcc/testsuite PR fortran/93484 * gfortran.dg/pr93484_1.f90: New test. * gfortran.dg/pr93484_2.f90: New test.
[Bug fortran/93484] [8/9/10 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120 since r7-4028-g87c9fca50cbe7ca9
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93484 Jakub Jelinek changed: What|Removed |Added Target Milestone|8.4 |8.5 --- Comment #3 from Jakub Jelinek --- GCC 8.4.0 has been released, adjusting target milestone.
[Bug fortran/93484] [8/9/10 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120 since r7-4028-g87c9fca50cbe7ca9
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93484 --- Comment #2 from kargl at gcc dot gnu.org --- This patch is against svn r280157. Whomever commit the patch needs to convert the example code into a testcase. Index: gcc/fortran/match.c === --- gcc/fortran/match.c (revision 280157) +++ gcc/fortran/match.c (working copy) @@ -,9 +,9 @@ gfc_match_type_spec (gfc_typespec *ts) found: - m = gfc_match_init_expr (); + m = gfc_match_expr (); if (m == MATCH_NO || m == MATCH_ERROR) - return MATCH_NO; + return m; /* If a comma appears, it is an intrinsic subprogram. */ gfc_gobble_whitespace ();
[Bug fortran/93484] [8/9/10 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120 since r7-4028-g87c9fca50cbe7ca9
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93484 Richard Biener changed: What|Removed |Added Priority|P3 |P4 Target Milestone|--- |8.4
[Bug fortran/93484] [8/9/10 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120 since r7-4028-g87c9fca50cbe7ca9
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93484 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2020-01-29 CC||kargl at gcc dot gnu.org, ||marxin at gcc dot gnu.org Summary|[8/9/10 Regression] ICE in |[8/9/10 Regression] ICE in |gfc_typenode_for_spec, at |gfc_typenode_for_spec, at |fortran/trans-types.c:1120 |fortran/trans-types.c:1120 ||since ||r7-4028-g87c9fca50cbe7ca9 Ever confirmed|0 |1 --- Comment #1 from Martin Liška --- Confirmed, started with r7-4028-g87c9fca50cbe7ca9.