http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44906
--- Comment #10 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-10-19 22:24:12 UTC --- The problem seems to be the tentative parsing in cp_parse_template_id, which tries every crazy thing it can, and when nothing works, it just gives this catch all diagnostic. But debugging the C++ parser is an absolute pain, I hope someone with more patience takes a shot at this. The current diagnostic is just awful.