http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51664
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-23 13:47:04 UTC --- wasn't the template keyword meant to avoid this ambiguity? Thus, if x.foo is a template then you are required to write x.template foo because x is template dependent?