https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
--- Comment #29 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 43522 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43522&action=edit gcc8-pr52991.patch Full untested patch (except for make check-gcc RUNTESTFLAGS='--target_board=unix\{-m32,-m64\} dg.exp=attr-ms*' on x86_64-linux), though this really needs to be double-checked against what VC does, on all the changed testcases.