https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61506
--- Comment #2 from Jürgen Reuter <juergen.reuter at desy dot de> --- This is the remark what I got from Andy Buckley: "Line 29 of PDF.cc is the end of the file, which suggests to me an unclosed scope or similar higher up. The reported errors are entirely from within Boost itself -- and there aren't even any direct Boost functions being called in that file, so I don't think this is an LHAPDF issue at all. What platform and Boost version are you using? I don't know how to track it down, but my guess is that the issue is with this development version of GCC going wrong with some of the fiddly code in Boost... the implementation of lexical_cast, by the looks of things. To simplify your GCC test, I suggest just writing a minimal source file using lexical_cast to convert between strings and a few numeric types; it really doesn't look like this has anything to do with LHAPDF." Hope this helps!