diff options
author | Jason Merrill <jason@redhat.com> | 2024-09-16 13:29:05 +0200 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-09-18 08:59:04 -0400 |
commit | 5c8f9f4d4cebabf85e68c5bdbe2d4ee6646edc7c (patch) | |
tree | 057944d789722aa8b819212f03fa98fc28e77acb /libdecnumber/dconfig.h | |
parent | 8733d5d3873977d6ca82d71b28728650f988e9c8 (diff) | |
download | gcc-trunk.zip gcc-trunk.tar.gz gcc-trunk.tar.bz2 |
The -Wdangling-reference diagnostic talks about the full-expression, but
prints one call, while the full-expression in a declaration is the entire
initialization. It seems more useful to point out the temporary that the
compiler thinks we might be getting a dangling reference to.
gcc/cp/ChangeLog:
* call.cc (do_warn_dangling_reference): Return temporary
instead of the call it's passed to.
(maybe_warn_dangling_reference): Adjust diagnostic.
gcc/testsuite/ChangeLog:
* g++.dg/warn/Wdangling-reference1.C: Adjust diagnostic.
Diffstat (limited to 'libdecnumber/dconfig.h')
0 files changed, 0 insertions, 0 deletions