https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83300
Bug ID: 83300 Summary: Segmentation fault with template and __attribute__((vector_size (sizeof(int) * N))); Product: gcc Version: 7.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: johnchen902 at paga dot moe Target Milestone: --- I found this while attempting to write generic vectorized code. Code: ====== template<int N> using vtsi = int __attribute__((vector_size (sizeof(int) * N))); void f(vtsi<4>) {} ====== Command line: g++ a.cpp ====== Output: g++: internal compiler error: Segmentation fault (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.archlinux.org/> for instructions.