summaryrefslogtreecommitdiff
path: root/libjava/classpath/gnu/java/beans/decoder/StaticMethodContext.java
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-11-22 12:39:09 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2025-11-22 12:39:09 +0100
commitcf865c811be1b83e960b3e661123cb19105d3181 (patch)
tree32268e6a077f409048e478460189d206ee693f67 /libjava/classpath/gnu/java/beans/decoder/StaticMethodContext.java
parentfb22d7f3b665555cfb55673ca2b954f860d28b50 (diff)
c++: Fix up [[maybe_unused]] handling on expansion stmts [PR122788]
This PR complains that [[maybe_unused]] attribute is ignored on the range-for-declaration of expansion-statement. We copy DECL_ATTRIBUTES and apply late attributes, but early attributes don't have their handlers called again, so some extra flags need to be copied as well. This copies TREE_USED and DECL_READ_P flags. 2025-11-22 Jakub Jelinek <jakub@redhat.com> PR c++/122788 * pt.cc (finish_expansion_stmt): Or in TREE_USED and DECL_READ_P flags from range_decl to decl or from corresponding structured binding to this_decl. * g++.dg/cpp26/expansion-stmt27.C: New test.
Diffstat (limited to 'libjava/classpath/gnu/java/beans/decoder/StaticMethodContext.java')
0 files changed, 0 insertions, 0 deletions