Issue 203431
Summary [clang] Incorrect Microsoft mangling with auto and template type parameter
Labels clang:frontend, platform:windows
Assignees
Reporter efriedma-quic
    ```
int z(int);
template<typename T>
auto f() -> auto(*)(T) {
  return z;
}
void g() { f<int>();}
```

MSVC mangles this as `??$f@H@@YAP6A?A_PH@ZXZ`. clang produces `??$f@H@@YAP6A?A_P?<TTPT_0_0>@@ZXZ`.  (Note the `<TTPT_0_0>` mangling is the fictitious mangling from #117845. CC @MaxEW707 .)

Possibly related to #203278 .
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to