diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2024-05-23 07:59:46 +0100 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2024-05-23 07:59:46 +0100 |
commit | 2ce90517ed75c4af9fc0616f2670cf6dfcfa8a91 (patch) | |
tree | fae1718be89c3acb599cef206a6e183b21ccd563 /gcc/cp/tree.cc | |
parent | 57e04879389f9c0d5d53f316b468ce1bddbab350 (diff) | |
download | gcc-2ce90517ed75c4af9fc0616f2670cf6dfcfa8a91.zip gcc-2ce90517ed75c4af9fc0616f2670cf6dfcfa8a91.tar.gz gcc-2ce90517ed75c4af9fc0616f2670cf6dfcfa8a91.tar.bz2 |
Fortran: Fix ICEs due to comp calls in initialization exprs [PR103312]
2024-05-23 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/103312
* dependency.cc (gfc_dep_compare_expr): Handle component call
expressions. Return -2 as default and return 0 if compared with
a function expression that is from an interface body and has
the same name.
* expr.cc (gfc_reduce_init_expr): If the expression is a comp
call do not attempt to reduce, defer to resolution and return
false.
* trans-types.cc (gfc_get_dtype_rank_type,
gfc_get_nodesc_array_type): Fix whitespace.
gcc/testsuite/
PR fortran/103312
* gfortran.dg/pr103312.f90: New test.
Diffstat (limited to 'gcc/cp/tree.cc')
0 files changed, 0 insertions, 0 deletions