https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288
--- Comment #9 from Fabio Alemagna <falemagn at gmail dot com> --- (In reply to Patrick Palka from comment #8) > The issue was probably latent before r6-6830. The testcase is kind of > strange, It's the "friend injection" technique. In this case, it's used to create a compile-time counter. The specific test case uses templates in such a way as to try and circumvent a diagnostic-related bug (bug #112267), which however triggered this other bug.