https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70410
--- Comment #2 from Sergey Podobry <sergiusthebest at hotmail dot com> --- It seems to fixed since gcc6.
sergiusthebest at hotmail dot com Wed, 21 Mar 2018 03:39:50 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70410
--- Comment #2 from Sergey Podobry <sergiusthebest at hotmail dot com> --- It seems to fixed since gcc6.