https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109172
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jason Merrill from comment #5) > Fixed for GCC 13. In general I'm not inclined to backport accepts-invalid > fixes, but am open to discussion. The fact nobody reported it until now suggests it's not a big deal.