aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.cc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2024-09-17 16:58:37 -0400
committerMarek Polacek <polacek@redhat.com>2024-09-26 17:50:32 -0400
commit6ac4e2f4b2ca9980670e7d3815a9140730df1005 (patch)
treec07773d546cd4cb0ef0ecf75d80c8947a5dccdc1 /gcc/cp/tree.cc
parente23e5370d5855fc18b9f6f3fb680fcd2971e7a79 (diff)
downloadgcc-6ac4e2f4b2ca9980670e7d3815a9140730df1005.zip
gcc-6ac4e2f4b2ca9980670e7d3815a9140730df1005.tar.gz
gcc-6ac4e2f4b2ca9980670e7d3815a9140730df1005.tar.bz2
c++: tweak for -Wrange-loop-construct [PR116731]
This PR reports that the warning would be better off using a check for trivially constructible rather than trivially copyable. LLVM accepted a similar fix: https://github.com/llvm/llvm-project/issues/47355 PR c++/116731 gcc/cp/ChangeLog: * parser.cc (warn_for_range_copy): Check if TYPE is trivially constructible, not copyable. gcc/testsuite/ChangeLog: * g++.dg/warn/Wrange-loop-construct3.C: New test. Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/cp/tree.cc')
0 files changed, 0 insertions, 0 deletions