[Bug c++/70584] constexpr variables cannot be used as intrinsic arguments where an immediate is expected
andres.tiraboschi at tallertechnologies dot com
gcc-bugzilla@gcc.gnu.org
Thu Apr 7 21:07:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70584
--- Comment #2 from Andrés Agustín Tiraboschi <andres.tiraboschi at tallertechnologies dot com> ---
#include <wmmintrin.h>
int main()
{
__m128i r;
constexpr auto index = 1;
enum {index2 = index};
r = _mm_aeskeygenassist_si128(r, index2);
}
This works also.
More information about the Gcc-bugs
mailing list