aboutsummaryrefslogtreecommitdiff
path: root/gcc/graph.h
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2021-10-04 09:38:43 +0200
committerTobias Burnus <tobias@codesourcery.com>2021-10-04 09:38:43 +0200
commit51d9ef7747b2dc439f7456303f0784faf5cdb1d3 (patch)
treedf80e8999c643a24cb6c1c5d424cba80a215ff25 /gcc/graph.h
parentf950d946370bb7b8751f7b89ff856beddbe91aea (diff)
downloadgcc-51d9ef7747b2dc439f7456303f0784faf5cdb1d3.zip
gcc-51d9ef7747b2dc439f7456303f0784faf5cdb1d3.tar.gz
gcc-51d9ef7747b2dc439f7456303f0784faf5cdb1d3.tar.bz2
Fortran: Avoid var initialization in interfaces [PR54753]
Intent(out) implies deallocation/default initialization; however, it is pointless to do this for dummy-arguments symbols of procedures which are inside an INTERFACE block. – This also fixes a bogus error for the attached included testcase, but fixing the non-interface version still has to be done. PR fortran/54753 gcc/fortran/ChangeLog: * resolve.c (can_generate_init, resolve_fl_variable_derived, resolve_symbol): Only do initialization with intent(out) if not inside of an interface block.
Diffstat (limited to 'gcc/graph.h')
0 files changed, 0 insertions, 0 deletions