// PR c++/101180 // { dg-do compile { target c++11 } } #pragma GCC target "avx" template struct A {}; #pragma GCC push_options #pragma GCC target "avx,avx2,bmi,bmi2,fma,f16c" template using B = A; template struct C; template <> struct C { __attribute__((always_inline)) float operator()(long) { return .0f; } }; long d; template void e(B) { T{C()(d)}; } template void f(T d, FromT) { e(d); } int g; void h() { A i; f(i, g); } #pragma GCC pop_options