aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2023-03-10 12:23:13 -0500
committerMarek Polacek <polacek@redhat.com>2023-03-13 11:21:25 -0400
commitced122b849b8961b854053f0d1ac96983c5802e5 (patch)
treec6c9dbf76849dcc75c3694f484014006581af739 /libgcc
parent7ef44579787af646d5bae13a91a49ef5d2048f5c (diff)
downloadgcc-ced122b849b8961b854053f0d1ac96983c5802e5.zip
gcc-ced122b849b8961b854053f0d1ac96983c5802e5.tar.gz
gcc-ced122b849b8961b854053f0d1ac96983c5802e5.tar.bz2
c++: suppress -Wdangling-reference for std::span [PR107532]
std::span is a view and therefore should be treated as a reference wrapper class for the purposes of -Wdangling-reference. I'm not sure there's a pattern that we could check for. PR c++/107532 gcc/cp/ChangeLog: * call.cc (reference_like_class_p): Check for std::span. gcc/testsuite/ChangeLog: * g++.dg/warn/Wdangling-reference10.C: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions