https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81589
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Martin Sebor from comment #2) > Confirmed with GCC 6 and 7. GCC 8 compiles the translation unit without an > error. Bisection points to r248153 as the revision that made it work. FWIW r248153 also fixed Bug 81190 for gcc-8, and r257981 for this bug fixed that on gcc-7-branch too.