http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51630
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-20 08:59:11 UTC --- Ah, it's because you're using -fsyntax-only, so it doesn't instantiate templates. Don't do that.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51630
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-20 08:59:11 UTC --- Ah, it's because you're using -fsyntax-only, so it doesn't instantiate templates. Don't do that.