------- Comment #2 from sebor at roguewave dot com  2006-09-22 16:57 -------
Yes, but 5.3.5, p1 says "The operand shall have a pointer type, or a class
type having a single conversion function (12.3.2) to a pointer type." and
not "shall be convertible to a pointer type." Note that gcc issues a hard
error for a dynamic_cast expression whose argument is an array, so I would
expect it to treat the delete expression the same since they both have the
same requirement WRT pointers.

Btw., I sent an email to EDG to request that they at least warn and to find
out whether they think it's well-formed. I'll update the incident with their
response.  Also note that both IBM XLC++ and HP aCC issue an error for the
test case.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29185

Reply via email to