[Bug c++/68831] [6 Regression] Superfluous -Waddress warning for C++ delete

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 10 11:15:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68831

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
The testcase was reduced from LLVM. Here's an adjusted version:

class DenseMap {
public:
  ~DenseMap();
};
extern const DenseMap &GCMap;
void foo() { delete &GCMap; }


More information about the Gcc-bugs mailing list