This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/69867] ICE on initializing character in type with array of incompatible data
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 30 Sep 2016 21:03:28 +0000
- Subject: [Bug fortran/69867] ICE on initializing character in type with array of incompatible data
- Auto-submitted: auto-generated
- References: <bug-69867-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69867
--- Comment #8 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Fri Sep 30 21:02:56 2016
New Revision: 240679
URL: https://gcc.gnu.org/viewcvs?rev=240679&root=gcc&view=rev
Log:
2016-09-30 Steven G. Kargl <kargl@gcc.gnu.org>
Backport from trunk
PR fortran/69867
* decl.c (build_struct): Ensure that pointers point to something.
PR fortran/69962
* decl.c (gfc_set_constant_character_len): if expr is not
constant issue an error instead of an ICE.
PR fortran/69962
* gfortran.dg/pr69962.f90: New test.
PR fortran/69867
* gfortran.dg/pr69867.f90: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/pr69867.f90
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/pr69962.f90
Modified:
branches/gcc-5-branch/gcc/fortran/ChangeLog
branches/gcc-5-branch/gcc/fortran/decl.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog