diff options
author | Marek Polacek <polacek@redhat.com> | 2022-03-02 10:48:26 -0500 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2022-03-08 16:15:55 -0500 |
commit | 6f748bc1e7fbae876ff47e3abe477253a0e70c09 (patch) | |
tree | 4e3f54eccbabfaa9f819d3137443600d6a551c76 /gcc/cp/constexpr.cc | |
parent | e3e369dad6cbecb1b490b3f3b154c600fba5a6f3 (diff) | |
download | gcc-6f748bc1e7fbae876ff47e3abe477253a0e70c09.zip gcc-6f748bc1e7fbae876ff47e3abe477253a0e70c09.tar.gz gcc-6f748bc1e7fbae876ff47e3abe477253a0e70c09.tar.bz2 |
c++: Attribute deprecated/unavailable divergence
Attributes deprecated and unavailable are largely the same, except
that the former produces a warning whereas the latter produces an error.
So is_late_template_attribute should treat them the same. Confirmed by
Iain that this divergence is not intentional:
<https://gcc.gnu.org/pipermail/gcc-patches/2022-February/591007.html>.
gcc/cp/ChangeLog:
* decl2.cc (is_late_template_attribute): Do not defer attribute
unavailable.
* pt.cc (tsubst_enum): Set TREE_UNAVAILABLE.
gcc/testsuite/ChangeLog:
* g++.dg/ext/attr-unavailable-9.C: Add dg-error.
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions