------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-22 16:43 -------
> (ill-fomed?)
I think it is valid because of how arrays decay to pointers (EDG also accepts
the code).
Confirmed, we just do the warning for array type decls:
/* An array can't have been allocated by new, so complain. */
if (TREE_CODE (exp) == VAR_DECL
&& TREE_CODE (TREE_TYPE (exp)) == ARRAY_TYPE)
warning (0, "deleting array %q#D", exp);
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC build triplet|all |
GCC host triplet|all |
GCC target triplet|all |
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2006-09-22 16:43:41
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29185