https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118199 --- Comment #15 from Sam James <sjames at gcc dot gnu.org> --- .. because the default is gnu++17. It of course does help if I specify -std=c++14 on this testcase.