https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97900
Bug ID: 97900 Summary: g++ crashes when instantiating a templated function with a template-type vector parameter Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Jonathan.Strobl at gmx dot de Target Milestone: --- Dear GCC maintainers, I have managed to crash the compiler with the following template instantiation. This happens on version 10.2.0 (on Debian Testing), as well as on 11.0.0 20201114 (experimental) on compiler explorer: https://godbolt.org/z/57xYb7 g++ -x c++ - <<EOF template<typename T> T test(T __attribute__((vector_size(2 * sizeof(T)))) vec) { return vec[0] + vec[1]; } typedef int v2si __attribute__((vector_size(2 * sizeof(int)))); int run(v2si vec) { return test<int>(vec); } EOF I have attached the output of "gcc -v" as well as the full backtrace. Thank you very much for your support. Yours sincerely, Jonathan Strobl