https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94771
Bug ID: 94771 Summary: g++.dg/concepts/diagnostic10.C fails on mingw Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbence92 at gmail dot com Target Milestone: --- g++.dg/concepts/diagnostic10.C fails with gcc 10 (ead1c27a530) on mingw target and host. Instead of diagnostic10.C:6:31: error: invalid use of non-static member function 'int S::f()' we get diagnostic10.C:6:31: error: statement cannot resolve address of overloaded function. Seems like the fix for Bug 52597 (typeck.c invalid_nonstatic_memfn_p) went with a special case for -fms-extensions which is a default for mingw. Compiling with -fno-ms-extensions provides the correct diagnostic.