aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/m4/types.m4
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2024-09-16 13:29:05 +0200
committerJason Merrill <jason@redhat.com>2024-09-18 08:59:04 -0400
commit5c8f9f4d4cebabf85e68c5bdbe2d4ee6646edc7c (patch)
tree057944d789722aa8b819212f03fa98fc28e77acb /libgfortran/m4/types.m4
parent8733d5d3873977d6ca82d71b28728650f988e9c8 (diff)
downloadgcc-trunk.zip
gcc-trunk.tar.gz
gcc-trunk.tar.bz2
c++: -Wdangling-reference diagnosticHEADtrunkmaster
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 'libgfortran/m4/types.m4')
0 files changed, 0 insertions, 0 deletions