https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78701
--- Comment #3 from Vincent <vince.rev at gmail dot com> --- I am compiling with: g++ test_bug.cpp -o test_bug g++ -std=c++11 test_bug.cpp -o test_bug g++ -std=c++14 test_bug.cpp -o test_bug and it fails in the 3 cases.