https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125563
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, the constructor is never instantiated, and the default argument is not used. The compiler is not required to diagnose this.
redi at gcc dot gnu.org via Gcc-bugs Tue, 02 Jun 2026 09:19:31 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125563
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, the constructor is never instantiated, and the default argument is not used. The compiler is not required to diagnose this.