Seems like a bug in gcc, according to the lxc maintainers: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78969