http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49470
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-20 10:06:13 UTC --- If you instantiate the template you get an error. There are LOTS of things clang diagnoses in uninstantiated templates that g++ doesn't