https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60966
--- Comment #12 from Thomas Sanchez <thomas.sanchz at gmail dot com> --- Hi Hideaki, I was able to workaround the bug by using boost promise instead of the STL one. I did not have the time to investigate the bug however, I'm not really familiar with the STL design :( Here is what I needed to do: https://github.com/daedric/httpp/commit/b7d9a36c7a9fe9fdaed1771326c1c5e5eaaa507c I did not hit the problem again so far. Good luck ! Are you able to produce a smaller code which trigger the bug than I was?