This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15898] Error with templated operator delete not detected
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2004 10:43:58 -0000
- Subject: [Bug c++/15898] Error with templated operator delete not detected
- References: <20040609160242.15898.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-06-10 10:43 -------
I will note that we don't need to actually call the delete operator to detect
the error, the declaration itself should be rejected. So the minimal testcase
which should be rejected is:
-----------------------
template < typename T >
void operator delete ( void* raw ) {}
-----------------------
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |2.95.3 3.3 3.4.0 3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15898