https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101840
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2021-08-10 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Confirmed. [class.access.general] p8: "Access is checked for a default argument ([dcl.fct.default]) at the point of declaration, rather than at any points of use of the default argument."