https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66392
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paolo.carlini at oracle dot com --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> --- Works in mainline, likely due to the fix for c++/54521. I'm adding the testcase and closing the bug.