This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/83300] New: Segmentation fault with template and __attribute__((vector_size (sizeof(int) * N)));


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]