https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64816
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> --- Hi Ville. Unfortunately it still fails for me, in the same way. Are you using the complete testcase, including the line outside namespace std?