aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-03-15 14:48:57 +0100
committerRichard Biener <rguenther@suse.de>2023-03-15 15:30:49 +0100
commitdc35778a4be9dc4b936b8f0943ce04fb5f5ce810 (patch)
tree9102444cb84bc91bfadeba0563b17a1bf44b509f /gcc/fortran/interface.cc
parent40c1352c5a4530350012d6a922435cf491663daa (diff)
downloadgcc-dc35778a4be9dc4b936b8f0943ce04fb5f5ce810.zip
gcc-dc35778a4be9dc4b936b8f0943ce04fb5f5ce810.tar.gz
gcc-dc35778a4be9dc4b936b8f0943ce04fb5f5ce810.tar.bz2
Avoid duplicate diagnostic in g++.dg/warn/Wuse-after-free3.C
We are diagnosing operator delete (this_3(D)); A::f (this_3(D)); *this_3(D) ={v} CLOBBER; where the CLOBBER appears at the end of the DTOR for C++11 and later. The following avoids this by simply never diagnosing clobbers as use-after-free. * gimple-ssa-warn-access.cc (pass_waccess::check_pointer_uses): Do not diagnose clobbers. * g++.dg/warn/Wuse-after-free3.C: Remove expected duplicate diagnostic.
Diffstat (limited to 'gcc/fortran/interface.cc')
0 files changed, 0 insertions, 0 deletions