aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2ctf.cc
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2025-03-07 18:33:29 -0800
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2025-03-07 18:33:29 -0800
commit3014f8787196d7c0d15d24195c8f07167968ff55 (patch)
tree0551cc67ebd3c768d5110234f7aa9c89e6afca32 /gcc/dwarf2ctf.cc
parente8c2f3a427a96a8626f005d4b38492b5d0a96c03 (diff)
downloadgcc-3014f8787196d7c0d15d24195c8f07167968ff55.zip
gcc-3014f8787196d7c0d15d24195c8f07167968ff55.tar.gz
gcc-3014f8787196d7c0d15d24195c8f07167968ff55.tar.bz2
Fortran: Fix ICE in resolve.cc with -pedantic
Fixes an ICE in gfc_resolve_code when passing an optional array to an elemental procedure with `-pedantic` enabled. PR95446 added the original check, this patch fixes the case where the other actual argument is an array literal (or something else other than a variable). PR fortran/119054 gcc/fortran/ChangeLog: * resolve.cc (resolve_elemental_actual): When checking other actual arguments to elemental procedures, don't check attributes of literals and function calls. gcc/testsuite/ChangeLog: * gfortran.dg/pr95446.f90: Expand test case to literals and function calls. Signed-off-by: Peter Hill <peter.hill@york.ac.uk>
Diffstat (limited to 'gcc/dwarf2ctf.cc')
0 files changed, 0 insertions, 0 deletions