[PATCH] handle member references in -Waddress [PR96507]

Martin Sebor msebor@gmail.com
Mon Nov 22 23:00:56 GMT 2021

While going through old -Waddress bug reports to close after
the recent improvements to the warning I came across PR 96507
that points out that member references aren't handled.  Since
testing the address of a reference for equality to null is
in general diagnosed, this seems like an oversight worth fixing.
  Attached is a change to the C++ front end to diagnose member
references as well.

Tested on x86_64-linux.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-96507.diff
Type: text/x-patch
Size: 3160 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211122/c72a7c6a/attachment.bin>

More information about the Gcc-patches mailing list