https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99335
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to AJ D from comment #0) > I was using CentOS6.8 with gcc 6.2. However, trying other versions of GCC > didn't make any difference. GCC 6.2 is no longer supported, so we don't want bug reports for it, and the C++17 changes to evaluation order were first implemented for GCC 7: https://gcc.gnu.org/projects/cxx-status.html#cxx17 So of course it doesn't work with GCC 6.