https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111499
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- The only reason it doesn't compile is because you explicitly told the compiler to make it not compile. This is just a warning, not an error.