summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/class_42.f03
diff options
context:
space:
mode:
authorforeese <foreese@138bc75d-0d04-0410-961f-82ee72b054a4>2016-08-15 21:19:09 +0000
committerforeese <foreese@138bc75d-0d04-0410-961f-82ee72b054a4>2016-08-15 21:19:09 +0000
commit36d310d07a333e6458e48b9745d8d899a7134008 (patch)
treefdbf0c01463438b4e88470ff54f74cbb32cfe8b7 /gcc/testsuite/gfortran.dg/class_42.f03
parent69ea43fdc7c1580d80ec96ef60d899db5356c199 (diff)
downloadgcc-36d310d07a333e6458e48b9745d8d899a7134008.tar.gz
2016-08-15 Fritz Reese <fritzoreese@gmail.com>
gcc/fortran/ * lang.opt, invoke.texi: New flag -finit-derived. * gfortran.h (gfc_build_default_init_expr, gfc_apply_init, gfc_generate_initializer): New prototypes. * expr.c (gfc_build_default_init_expr, gfc_apply_init, component_initializer, gfc_generate_initializer): New functions. * expr.c (gfc_default_initializer): Wrap gfc_generate_initializer. * decl.c (build_struct): Move common code to gfc_apply_init. * resolve.c (can_generate_init): New function. * resolve.c (build_default_init_expr): Wrap gfc_build_default_init_expr. * resolve.c (apply_default_init, resolve_fl_variable_derived): Use gfc_generate_initializer. * trans-decl.c (gfc_generate_function_code): Use gfc_generate_initializer. gcc/testsuite/gfortran.dg/ * init_flag_13.f90: New testcase. * init_flag_14.f90: Ditto. * init_flag_15.f03: Ditto. * dec_init_1.f90: Ditto. * dec_init_2.f90: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239489 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gfortran.dg/class_42.f03')
0 files changed, 0 insertions, 0 deletions