[Bug c++/83932] No diagnostic issued for missing default argument in lambda-expression

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 19 04:41:47 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83932

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
We do handle the default argument in other places correctly that is we reject:
struct g
{
  int operator()(int i = 1, int j){return 0;}
};


More information about the Gcc-bugs mailing list