https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81819
--- Comment #1 from Oleg Endo <olegendo at gcc dot gnu.org> --- I can confirm that the problem still exists on GCC 7 branch and probably also on trunk (trunk does not build the app because of another bug). The patch above fixes the problem and the app runs.