diff options
author | Jason Merrill <jason@redhat.com> | 2025-04-16 11:15:14 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2025-04-16 14:48:35 -0400 |
commit | b0d7d644f3c25af9bf60c948ab26aa7b09a68787 (patch) | |
tree | 2f26ad016a180f5a55fdadb16fdff8173cd1b8e3 /libjava/classpath/lib/java | |
parent | 6b4569a3ebdd0df44d87d67a18272ec0b878f2ee (diff) | |
download | gcc-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