https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99806
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Another related test that we should probably accept: // PR c++/99806 struct S { void f(auto, auto, int = 3); }; void g () { S s; s.f(1, 2); }