| Issue |
160543
|
| Summary |
Missing warning for using deprecated template with CTAD
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
timsong-cpp
|
Clang doesn't issue a deprecation warning on this code, but it probably should:
```cpp
template<class F>
struct [[deprecated]] X { X(F);};
void f() {
X x{0};
}
```
Explicitly providing the template arguments as `X<int>` does trigger a warning.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs