http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53880
--- Comment #9 from Steven Bosscher <steven at gcc dot gnu.org> 2012-07-24 09:20:14 UTC --- (In reply to comment #1) > Boost version is 1.49. > (When I use --save-temps and use the resulting .ii file instead, the > regression > is no longer reproducible) That's of course because all preprocessor macros are already expanded and written out to the .ii file :-) I've posted this patch for -O0 builds: http://gcc.gnu.org/ml/gcc-patches/2012-07/msg01174.html I have no idea if it helps for "normal" optimized builds also. Perhaps you can give it a try.