https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114995
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect the syntax you want instead is: [[assume(uintptr_t(x_array) & (32-1) == 0]]; Becuase __builtin_assume_aligned takes a pointer and returns a pointer that has the assumed alignment