https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99108
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED Target Milestone|--- |11.0 --- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- I don't think this needs backporting, but could do if needed. The workaround of moving the declarations to namespace scope seems sufficient for older compilers.