================ @@ -787,6 +787,20 @@ NamedDecl *Parser::ParseTemplateTemplateParameter(unsigned Depth, unsigned Position) { assert(Tok.is(tok::kw_template) && "Expected 'template' keyword"); + if (Token ahead = GetLookAheadToken(1); ahead.isNot(tok::less)) { + // Maybe they intended `typename` instead of `template` (given thats more + // common) Error early, to add a fixit hint ---------------- Sirraide wrote:
```suggestion // `template` may have been a typo for `typename`, given that the // latter is more common. ``` nit: the comment could be cleaned up a bit, maybe like this https://github.com/llvm/llvm-project/pull/95726 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits