https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118815
--- Comment #4 from Haochen Jiang <haochen.jiang at intel dot com> --- (In reply to Haochen Jiang from comment #3) > Which makes this thing more weird than my expected is that avx10_2rounding > and avx10_2minmax intrin file seems not reporting the warning. It also > should from my understanding, but it may shed the light of the real issue. Forget about that, they will also throw warning, but the good news is that I have derived a much smaller case for that. When it is wrapped into the push and pop of AVX10.2-256, the func will throw warning out. ''' #pragma GCC push_options #pragma GCC target("avx10.2-256") void foo(); #pragma GCC pop_options '''