This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/83300] New: Segmentation fault with template and __attribute__((vector_size (sizeof(int) * N)));
- From: "johnchen902 at paga dot moe" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 06 Dec 2017 06:25:50 +0000
- Subject: [Bug c++/83300] New: Segmentation fault with template and __attribute__((vector_size (sizeof(int) * N)));
- Auto-submitted: auto-generated
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.