Deprecated attribute not honoured on partial template specialization (original) (raw)
Bugzilla Link | 45151 |
---|---|
Version | trunk |
OS | All |
CC | @dwblaikie,@zygoloid |
Extended Description
In the following code, the deprecated attribute does not fire. I believe that is because it is applied to a partial specialization:
cat <<EOF | clang++ -xc++ -
template <typename T> class function { };
template <typename A>
class __attribute__((deprecated)) function<void(A)> { };
int main() { function<void(int)> f; }
EOF
Live repro: https://wandbox.org/permlink/5IAXzJOYCpPuCbok