================ @@ -11698,6 +11698,13 @@ Sema::ActOnTypenameType(Scope *S, SourceLocation TypenameLoc, // Construct a dependent template specialization type. assert(DTN && "dependent template has non-dependent name?"); assert(DTN->getQualifier() == SS.getScopeRep()); + ---------------- zyn0217 wrote:
nit: it would be clearer if we add a comment saying that a typename-specifier can only be followed by an identifier/simple-template-id. (Maybe quote https://eel.is/c++draft/temp.res.general#nt:typename-specifier?) https://github.com/llvm/llvm-project/pull/98545 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits