https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108975
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-03-01 Keywords|needs-reduction | Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced: int h(int); template <int index, int dim, typename trials> auto get_derivative_type1() { return 0; } template <typename test, typename trials> void generate_kernels1() { const unsigned num_elements = 1; constexpr int dim = 1; [&](auto index) { using derivative_type = decltype(get_derivative_type1<index, dim, trials>()); h(num_elements * 1); }; } void thermal_test() { generate_kernels1<int, int>(); }