================
@@ -2270,6 +2270,14 @@ void CXXNameMangler::mangleTemplatePrefix(GlobalDecl GD,
     mangleTemplateParameter(TTP->getDepth(), TTP->getIndex());
   } else {
     const DeclContext *DC = Context.getEffectiveDeclContext(ND);
+    if (const auto *FD = dyn_cast<FunctionTemplateDecl>(GD.getDecl())) {
----------------
usx95 wrote:

We should move this logic to `getEffectiveDeclContext(ND);`. We already handle 
`FunctionDecl` for friends there.

You can check for `dyn_cast<FunctionTemplateDecl>(D)` which is unhandled.


https://github.com/llvm/llvm-project/pull/110247
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to