https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111051
--- Comment #2 from Haochen Jiang <haochen.jiang at intel dot com> --- It is caused by when including immintrin.h, since the pragma is removed, there will be no AVX support, which makes _mm256_setzero_pd invisible. Adding a AVX2 pragma instead of removing it should solve the problem. I am working a patch on that.