https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93016
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Nikita Kniazev from comment #2) > This is a regression since GCC 6 https://godbolt.org/z/7WbYb9a7j Not really. The difference is that GCC 6 defaults to -std=gnu++14 but if you use that (or -std=c++11) with GCC 5 you get the same behaviour.