This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs c++(delete on pointer to constant memory)
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: egcs c++(delete on pointer to constant memory)
- From: Jan Gentsch <gentsch at ifm dot uni-hamburg dot de>
- Date: Wed, 12 May 1999 09:44:17 +0200
- Organization: IFM Hamburg
main() {
int const * ip ;
ip = new int[10];
delete [] ip; // That shouldn´t be allowed.
}
Jan
--
·´¯`·.¸¸..><((((º>.·´¯`·.¸¸.·´¯`·.¸><((((º>¸.·´¯`·.¸.,..·´¯`·..
><((((º>`·.¸¸.·´¯`·.¸.·´¯`·...¸><((((º>