Article View: gnu.g++.bug
Article #387delete doesn't accept null argument.
From: Mike Lijewski
Date: Fri, 01 Sep 1989 20:19
Date: Fri, 01 Sep 1989 20:19
34 lines
1434 bytes
1434 bytes
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
Technical Details
Message-ID:
<8759@batcomputer.tn.cornell.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!lijewskiShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!lijewski From: lijewski@batcomputer.tn.cornell.edu (Mike Lijewski) Newsgroups: gnu.g++.bug Subject: delete doesn't accept null argument. Message-ID: <8759@batcomputer.tn.cornell.edu> Date: 1 Sep 89 20:19:51 GMT Organization: Cornell National Supercomputer Facility Lines: 34 Keywords: delete NULL