[gnu.g++.bug] delete doesn't accept null argument.

lijewski@batcomputer.tn.cornell.edu (Mike Lijewski) (09/02/89)

The following script illustrates that g++ won't accept 0 as
an argument to delete.


Script started on Fri Sep  1 16:08:16 1989

robbie(1)->cat delete.cc

main(void)
{
  delete 0;
}

robbie(2)->g++ -v delete.cc

g++ version 1.36.0-
 /usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__GNUC__ -D__cplusplus -Dunix -Di386 -Dsun386 -Dsun -D__unix__ -D__i386__ -D__sun386__ -D__sun__ delete.cc /tmp/cca00914.cpp
GNU CPP version 1.35.96
 /usr/local/lib/gcc-cc1plus /tmp/cca00914.cpp -quiet -dumpbase delete.cc -noreg -version -o /tmp/cca00914.s
GNU C++ version 1.36.0- (80386, Sun syntax) compiled by GNU C version 1.35.96.
default target switches: -m80387
delete.cc: In function int main ():
delete.cc:3: non-pointer type to `delete'

robbie(3)->exit

script done on Fri Sep  1 16:11:23 1989


-- 
Mike Lijewski  (H)607/277-7623 (W)607/255-0539 (desk)607/255-2960
Cornell National Supercomputer Facility
ARPA: mjlx@cornellf.tn.cornell.edu  BITNET: mjlx@cornellf.bitnet
SMAIL:  1122 Ellis Hollow Rd. Ithaca, NY  14850