This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/69867] ICE on initializing character in type with array of incompatible data


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]