aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.c-c++-common/metadirective-target-device.c
diff options
context:
space:
mode:
authorTobias Burnus <tburnus@baylibre.com>2025-01-16 11:50:26 +0100
committerTobias Burnus <tburnus@baylibre.com>2025-01-16 11:50:26 +0100
commitc5a8e22c5dacf4f9d4f66e60990bf34c70f04714 (patch)
tree7dc4ee304c4039cd8f958fe3643bbfc3e8189a04 /libgomp/testsuite/libgomp.c-c++-common/metadirective-target-device.c
parent462a7f45caf78466ee6d9a1256a1e2848e4ec49c (diff)
downloadgcc-c5a8e22c5dacf4f9d4f66e60990bf34c70f04714.zip
gcc-c5a8e22c5dacf4f9d4f66e60990bf34c70f04714.tar.gz
gcc-c5a8e22c5dacf4f9d4f66e60990bf34c70f04714.tar.bz2
Fortran: Create fresh ts.u.cl for result in gfc_get_symbol_for_expr [PR118441]
For intrinsic routines, called in libraries, the prototype is created from the call via gfc_get_symbol_for_expr. For the actual arguments, it calls gfc_copy_formal_args_intr which already ensures that the ts.u.cl is freshly allocated. This commit now ensures the same for character-returning functions. PR fortran/118441 gcc/fortran/ChangeLog: * trans-intrinsic.cc (gfc_get_symbol_for_expr): Use gfc_new_charlen for character-returning functions. gcc/testsuite/ChangeLog: * gfortran.dg/gomp/intrinsic_pack_7.f90: New test.
Diffstat (limited to 'libgomp/testsuite/libgomp.c-c++-common/metadirective-target-device.c')
0 files changed, 0 insertions, 0 deletions