aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/lib/java
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2025-04-16 11:15:14 -0400
committerJason Merrill <jason@redhat.com>2025-04-16 14:48:35 -0400
commitb0d7d644f3c25af9bf60c948ab26aa7b09a68787 (patch)
tree2f26ad016a180f5a55fdadb16fdff8173cd1b8e3 /libjava/classpath/lib/java
parent6b4569a3ebdd0df44d87d67a18272ec0b878f2ee (diff)
downloadgcc-b0d7d644f3c25af9bf60c948ab26aa7b09a68787.zip
gcc-b0d7d644f3c25af9bf60c948ab26aa7b09a68787.tar.gz
gcc-b0d7d644f3c25af9bf60c948ab26aa7b09a68787.tar.bz2
c++: format attribute redeclaration [PR116954]
Here when merging the two decls, remove_contract_attributes loses ATTR_IS_DEPENDENT on the format attribute, so apply_late_template_attributes just returns, so the attribute doesn't get propagated to the type where the warning looks for it. Fixed by using copy_node instead of tree_cons to preserve flags. PR c++/116954 gcc/cp/ChangeLog: * contracts.cc (remove_contract_attributes): Preserve flags on the attribute list. gcc/testsuite/ChangeLog: * g++.dg/warn/Wformat-3.C: New test.
Diffstat (limited to 'libjava/classpath/lib/java')
0 files changed, 0 insertions, 0 deletions