re PR fortran/45586 (ICE non-trivial conversion at assignment)
PR fortran/45586 * gfortran.h (struct gfc_component): Add norestrict_decl member. * trans.h (struct lang_type): Add nonrestricted_type member. * trans-expr.c (gfc_conv_component_ref): Search fields with correct parent type. * trans-types.c (mirror_fields, gfc_nonrestricted_type): New. (gfc_sym_type): Use it. testsuite/ PR fortran/45586 * gfortran.dg/lto/pr45586_0.f90: New test. * gfortran.dg/typebound_proc_20.f90: Ditto. * gfortran.dg/typebound_proc_21.f90: Ditto. From-SVN: r170284
Showing
- gcc/fortran/ChangeLog 10 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/gfortran.h 4 additions, 0 deletionsgcc/fortran/gfortran.h
- gcc/fortran/trans-expr.c 20 additions, 0 deletionsgcc/fortran/trans-expr.c
- gcc/fortran/trans-types.c 168 additions, 0 deletionsgcc/fortran/trans-types.c
- gcc/fortran/trans.h 1 addition, 0 deletionsgcc/fortran/trans.h
- gcc/testsuite/gfortran.dg/lto/pr45586_0.f90 29 additions, 0 deletionsgcc/testsuite/gfortran.dg/lto/pr45586_0.f90
- gcc/testsuite/gfortran.dg/typebound_proc_20.f90 68 additions, 0 deletionsgcc/testsuite/gfortran.dg/typebound_proc_20.f90
- gcc/testsuite/gfortran.dg/typebound_proc_21.f90 27 additions, 0 deletionsgcc/testsuite/gfortran.dg/typebound_proc_21.f90
Loading
Please register or sign in to comment