Fix -finit-derived for c_ptr and c_funptr in programs which use
iso_c_binding.
gcc/fortran/ChangeLog:
2018-06-25 Fritz Reese <fritzoreese@gmail.com>
PR fortran/82972
PR fortran/83088
PR fortran/85851
* expr.c (component_initializer): Assign init expr to c->initializer.
(generate_isocbinding_initializer): New.
(gfc_generate_initializer): Call generate_isocbinding_initializer to
generate initializers for c_ptr and c_funptr with -finit-derived.
gcc/testsuite/ChangeLog:
2018-06-25 Fritz Reese <fritzoreese@gmail.com>
PR fortran/82972
PR fortran/83088
PR fortran/85851
* gfortran.dg/init_flag_17.f90: New testcase.
From-SVN: r262104