https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81174
Allan Jensen <linux at carewolf dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|6.1.1 |7.1.0 --- Comment #1 from Allan Jensen <linux at carewolf dot com> --- Also reproduced with gcc 4.8, 4.9, 5 and 7. Works in clang. With gcc 6+ it would sometimes work if bswap was called as part of a constructor.