diff options
author | Andreas Krebbel <krebbel@linux.ibm.com> | 2023-11-14 11:33:44 +0100 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.ibm.com> | 2023-11-14 11:34:30 +0100 |
commit | a745d2064f3e8a368995c67e80146e563d6a8fec (patch) | |
tree | 9902ca39aae59d0dbd6317e370742aa6a1207e01 /gcc/config | |
parent | 69d69865a792a93cce2905617c53913769d0f260 (diff) | |
download | gcc-a745d2064f3e8a368995c67e80146e563d6a8fec.zip gcc-a745d2064f3e8a368995c67e80146e563d6a8fec.tar.gz gcc-a745d2064f3e8a368995c67e80146e563d6a8fec.tar.bz2 |
IBM Z: Fix ICE with overloading and checking enabled
s390_resolve_overloaded_builtin, when called on NON_DEPENDENT_EXPR,
ICEs when using the type from it which ends up as error_mark_node.
This particular instance of the problem does not occur anymore since
NON_DEPENDENT_EXPR has been removed. Nevertheless that case needs to
be handled here.
gcc/ChangeLog:
* config/s390/s390-c.cc (s390_fn_types_compatible): Add a check
for error_mark_node.
gcc/testsuite/ChangeLog:
* g++.target/s390/zvec-templ-1.C: New test.
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/s390/s390-c.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/s390/s390-c.cc b/gcc/config/s390/s390-c.cc index 269f4f8..fce56934 100644 --- a/gcc/config/s390/s390-c.cc +++ b/gcc/config/s390/s390-c.cc @@ -781,6 +781,9 @@ s390_fn_types_compatible (enum s390_builtin_ov_type_index typeindex, tree in_arg = (*arglist)[i]; tree in_type = TREE_TYPE (in_arg); + if (in_type == error_mark_node) + goto mismatch; + if (VECTOR_TYPE_P (b_arg_type)) { /* Vector types have to match precisely. */ |