https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99381
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Alex Coplan <acop...@gcc.gnu.org>: https://gcc.gnu.org/g:6925d4763e469e43b9d06e4a17187215bc03d3c9 commit r10-9436-g6925d4763e469e43b9d06e4a17187215bc03d3c9 Author: Alex Coplan <alex.cop...@arm.com> Date: Thu Mar 4 14:36:39 2021 +0000 aarch64: Add missing error_mark_node check [PR99381] We were missing a check in function_resolver::require_vector_type to see if the argument type was already invalid. This was causing us to attempt to emit a diagnostic and subsequently ICE in print_type. Fixed thusly. gcc/ChangeLog: PR target/99381 * config/aarch64/aarch64-sve-builtins.cc (function_resolver::require_vector_type): Handle error_mark_node. gcc/testsuite/ChangeLog: PR target/99381 * gcc.target/aarch64/pr99381.c: New test. (cherry picked from commit a6bc1680a493de356d6a381718021c6a44401201)