https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95693
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Martin Liška from comment #1) > I'm not a C++ expert, but it seems to me an invalid code. I don't see anything wrong with the code.