5chmidti wrote:

One issue that I have found when I ran this on VTK:
When specializing a function template, the check will add `constexpr` to the 
non-specialized template for each specialization. I have left this in for now, 
but maybe the check should instead not add `constexpr` to the non-specialized 
re-decl for every specialization. WDYT?

```diff
template <typename T>
- int foo();
+ constexpr constexpr int foo(); 

template <>
- int foo<int>() { return 10; }
+ constexpr int foo<int>() { return 10; }

template <>
- int foo<unsigned int>() { return 0; }
+ constexpr int foo<unsigned int>() { return 0; }

```

https://github.com/llvm/llvm-project/pull/162741
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to