[Bug fortran/88467] Silently accepts wrong array constructor
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Dec 16 17:01:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88467
--- Comment #7 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Sun Dec 16 17:00:33 2018
New Revision: 267190
URL: https://gcc.gnu.org/viewcvs?rev=267190&root=gcc&view=rev
Log:
2018-12-16 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88116
PR fortran/88467
* array.c (gfc_match_array_constructor): Check return value of
gfc_convert_type(). Skip constructor elements with BT_UNKNOWN,
which need to go through resolution.
* intrinsic.c (gfc_convert_type_warn): Return early if the types
martch (i.e., no conversion is required).
* simplify.c (gfc_convert_constant): Remove a gfc_internal_error,
and return gfc_bad_expr.
2018-12-16 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88116
* gfortran.dg/pr88116_1.f90: New test.
* gfortran.dg/pr88116_2.f90: Ditto.
PR fortran/88467
* gfortran.dg/pr88467.f90: New test.
Added:
branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pr88116_1.f90
branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pr88116_2.f90
branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pr88467.f90
Modified:
branches/gcc-8-branch/gcc/fortran/ChangeLog
branches/gcc-8-branch/gcc/fortran/array.c
branches/gcc-8-branch/gcc/fortran/intrinsic.c
branches/gcc-8-branch/gcc/fortran/simplify.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list