[clang] [clang] Track function template instantiation from definition (PR #112241)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 30 15:27:56 PST 2025
mizvekov wrote:
Thanks for the report, this is the reduced reproducer:
```C++
template <typename> struct QWindowSystemHelper {
template <typename EventType> static void handleEvent() {
QWindowSystemHelper<int>::handleEvent<EventType>();
}
};
template <>
template <typename EventType>
void QWindowSystemHelper<int>::handleEvent() {
static_assert(__is_same(EventType, long));
}
template void QWindowSystemHelper<void>::handleEvent<long>();
```
https://github.com/llvm/llvm-project/pull/112241
More information about the cfe-commits
mailing list