https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109490
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Summary|ICE when using custom |ICE when declaring custom
|OpenMP reduction in generic |OpenMP reduction in generic
|Lambda in Template Function |Lambda in Template Function
Last reconfirmed| |2023-04-12
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced:
```
template <class T> void add(int const &maxs) {
auto step = [&](auto const &maxs) {
#pragma omp declare reduction(MyRed:double : omp_out += omp_in)
};
return step(maxs);
}
int main() { add<double>(100); }
```