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/86417] [9 Regression] FAIL: libgomp.fortran/alloc-comp-3.f90 -O0 (test for excess errors)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86417

--- Comment #16 from Fritz Reese <foreese at gcc dot gnu.org> ---
Author: foreese
Date: Mon Jul 16 18:59:44 2018
New Revision: 262746

URL: https://gcc.gnu.org/viewcvs?rev=262746&root=gcc&view=rev
Log:
2018-07-16  Fritz Reese  <fritzoreese@gmail.com>

    Backport r262442 and r262743.

    gcc/fortran/ChangeLog:

        Backport from trunk:

        PR fortran/86417
        * module.c (mio_component): Set component->loc when loading from
module.

        PR fortran/83183
        PR fortran/86325
        * expr.c (class_allocatable, class_pointer, comp_allocatable,
        comp_pointer): New helpers.
        (component_initializer): Generate EXPR_NULL for allocatable or pointer
        components. Do not generate initializers for components within
BT_CLASS.
        Do not assign to comp->initializer.
        (gfc_generate_initializer): Use new helpers; move code to generate
        EXPR_NULL for class allocatable components into
component_initializer().

    gcc/testsuite/ChangeLog:

        Backport from trunk:

        PR fortran/83183
        PR fortran/86325
        * gfortran.dg/init_flag_18.f90: New testcase.
        * gfortran.dg/init_flag_19.f03: New testcase.


Added:
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/init_flag_18.f90
      - copied unchanged from r262442,
trunk/gcc/testsuite/gfortran.dg/init_flag_18.f90
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/init_flag_19.f03
      - copied unchanged from r262442,
trunk/gcc/testsuite/gfortran.dg/init_flag_19.f03
Modified:
    branches/gcc-8-branch/   (props changed)
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/expr.c
    branches/gcc-8-branch/gcc/fortran/module.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog

Propchange: branches/gcc-8-branch/
            ('svn:mergeinfo' modified)

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