aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorMikael Morin <mikael@gcc.gnu.org>2022-08-29 11:19:29 +0200
committerMikael Morin <mikael@gcc.gnu.org>2022-09-25 14:44:53 +0200
commitedaf1e005c90b311c39b46d85cea17befbece112 (patch)
treef86ab7657d2735c7f2516afdee5ca0ef58b8f29b /gcc/ada
parent2b393f6f83903cb836676bbd042c1b99a6e7e6f7 (diff)
downloadgcc-edaf1e005c90b311c39b46d85cea17befbece112.zip
gcc-edaf1e005c90b311c39b46d85cea17befbece112.tar.gz
gcc-edaf1e005c90b311c39b46d85cea17befbece112.tar.bz2
fortran: Fix invalid function decl clobber ICE [PR105012]
The fortran frontend, as result symbol for a function without declared result symbol, uses the function symbol itself. This caused an invalid clobber of a function decl to be emitted, leading to an ICE, whereas the intended behaviour was to clobber the function result variable. This change fixes the problem by getting the decl from the just-retrieved variable reference after the call to gfc_conv_expr_reference, instead of copying it from the frontend symbol. PR fortran/105012 gcc/fortran/ChangeLog: * trans-expr.cc (gfc_conv_procedure_call): Retrieve variable from the just calculated variable reference. gcc/testsuite/ChangeLog: * gfortran.dg/intent_out_15.f90: New test.
Diffstat (limited to 'gcc/ada')
0 files changed, 0 insertions, 0 deletions