Article View: gnu.g++.bug
Article #2218array size expression for delete
From: Robert Collins
Date: Mon, 26 Feb 1990 23:48
Date: Mon, 26 Feb 1990 23:48
20 lines
986 bytes
986 bytes
Michael, When I use the syntax delete [size] array; and compile with '-O -Wall', I am told file.cc: warning: array size expression for delete ignored This sounds ominous. Is the [size] really ignored? Is only the first element of my array being destroyed? Is the warning bogus? Is my code bogus? Do you need some sample (bogus?) code? My code seems to do the right thing (I should run out of CM memory fairly quickly if this is failing to destroy all elements of the array, but I don't), but this warning has got me worried. Thanks, Worried in LA (rjc@cs.ucla.edu)
Technical Details
Message-ID:
<9002262348.AA12899@maui.cs.ucla.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CS.UCLA.EDU!rjcShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CS.UCLA.EDU!rjc From: rjc@CS.UCLA.EDU (Robert Collins) Newsgroups: gnu.g++.bug Subject: array size expression for delete Message-ID: <9002262348.AA12899@maui.cs.ucla.edu> Date: 26 Feb 90 23:48:33 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 20