https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54162
--- Comment #5 from Josh Triplett <josh at joshtriplett dot org> --- Visual C (2017 at least), clang, and as far as I can tell, current GCC. I don't know at what point this started working, but it seems to work now.