llvm-project/clang/test/CXX/dcl.dcl
Erich Keane a32910da1a Correct class-template deprecation behavior-REDUX
Correct class-template deprecation behavior

Based on the comment in the test, and my reading of the standard, a deprecated warning should be issued in the following case:
template<typename T> [[deprecated]] class Foo{}; Foo<int> f;

This was not the case, because the ClassTemplateSpecializationDecl creation did not also copy the deprecated attribute.

Note: I did NOT audit the complete set of attributes to see WHICH ones should be copied, so instead I simply copy ONLY the deprecated attribute.

Previous DiffRev: https://reviews.llvm.org/D27486, was reverted.
This patch fixes the issues brought up here by the reverter: https://reviews.llvm.org/rL298410

Differential Revision: https://reviews.llvm.org/D31245

llvm-svn: 298634
2017-03-23 18:51:54 +00:00
..
basic.namespace PR31606: Generalize our tentative DR resolution for inheriting copy/move 2017-01-13 20:46:54 +00:00
dcl.attr Correct class-template deprecation behavior-REDUX 2017-03-23 18:51:54 +00:00
dcl.enum PR18400: ignore cv-qualifiers on the underlying type of an enumeration. 2014-01-08 01:16:19 +00:00
dcl.link More tests for r201536. 2014-02-18 22:47:10 +00:00
dcl.spec [c++1z] Diagnose attempts to use variables with deduced class template 2017-02-10 22:35:37 +00:00
p4-0x.cpp