https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46811
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I can reproduce the problem with boost 1.63 but using 1.74 fixes the issue. Note even clang takes a long time to error out with 1.63. So I really doubt there is much to be done here.