https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66971
bert hubert <ahu at ds9a dot nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ahu at ds9a dot nl --- Comment #1 from bert hubert <ahu at ds9a dot nl> --- I can confirm this issue on the stock Ubuntu Xenial g++ which describes itself as gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) In addition, PowerDNS recursor from git has run into this problem too. This workaround helps: https://github.com/PowerDNS/pdns/pull/5350/commits/f165a1f4fc8ebd9b7ca060e4a332a687c4d46510 Other versions of g++ do not show this problem. I have not yet verified if this bug shows in g++ 5.4.0 without Ubuntu patches.