https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62086
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- N.B. you're not compiling it as C++11, you're compiling it as C89
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62086
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- N.B. you're not compiling it as C++11, you're compiling it as C89