http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56892
--- Comment #1 from Geoff Worboys <geoff at telesiscomputing dot com.au> 2013-04-09 12:35:33 UTC --- I realised I should add that I put the same code (adjusted for lack of C++11 support) through msvc v17, and can see it optimising the inline calls inside the library binary.