https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109753

            Bug ID: 109753
           Summary: pragma GCC target stops std::vector from compiling
           Product: gcc
           Version: 13.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: magnus.hegdahl at gmail dot com
  Target Milestone: ---

Tested on g++ (GCC) 13.1.1 20230429 on x86-64 Linux

The following code doesn't compile without also enabling the target using
compile flags (like -mavx2). It did compile in GCC 12.2.0.

#pragma GCC target("avx2")

#include <vector>

int main() {
  std::vector<int> a;
}

Reply via email to