shafik added inline comments.
================ Comment at: clang/lib/Sema/SemaTemplateInstantiate.cpp:743 << FD << Active->InstantiationRange; + } else if (ClassTemplateDecl *CTD = dyn_cast<ClassTemplateDecl>(D)) { + Diags.Report(Active->PointOfInstantiation, ---------------- I added this fix because the `B3` test case I added below although was fixed by my patch it uncovered a new bug that resulted in the compiler locking up. It looks like the malformed code results in a us seeing a `ClassTemplateDecl` where we would usually not expect it. If this handled better earlier let me know. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D148474/new/ https://reviews.llvm.org/D148474 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits