You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static_assert(vectorShuffle6[0] == 0, "");// ref-error {{not an integral constant expression}}
894
+
static_assert(vectorShuffle6[1] == 2, "");// ref-error {{not an integral constant expression}}
895
+
static_assert(vectorShuffle6[2] == 4, "");// ref-error {{not an integral constant expression}}
896
+
static_assert(vectorShuffle6[3] == 6, "");// ref-error {{not an integral constant expression}}
897
+
static_assert(vectorShuffle6[4] == 1, "");// ref-error {{not an integral constant expression}}
898
+
static_assert(vectorShuffle6[5] == 3, "");// ref-error {{not an integral constant expression}}
899
+
static_assert(vectorShuffle6[6] == 5, "");// ref-error {{not an integral constant expression}}
900
+
static_assert(vectorShuffle6[7] == 7, "");// ref-error {{not an integral constant expression}}
901
+
902
+
constexpr vector4char vectorShuffleFail1 = __builtin_shufflevector( // both-error {{must be initialized by a constant expression}}\
903
+
// ref-error {{index for __builtin_shufflevector not within the bounds of the input vectors; index of -1 found at position 0 not permitted in a constexpr context.}}
0 commit comments