From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27555 invoked by alias); 9 Jan 2005 23:12:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 27531 invoked by uid 48); 9 Jan 2005 23:11:59 -0000 Date: Sun, 09 Jan 2005 23:12:00 -0000 Message-ID: <20050109231159.27530.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050109221816.19351.fw@deneb.enyo.de> References: <20050109221816.19351.fw@deneb.enyo.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/19351] operator new[] can return heap blocks which are too small X-Bugzilla-Reason: CC X-SW-Source: 2005-01/txt/msg01156.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-09 23:11 ------- (In reply to comment #6) > There's no multiplication in the source code. The multiplication is an > implementation detail. You can hardly use it to justify the semantics of the > operation. Actually the multiplication is not an implementation detail. The standard says what opator new[] should be passed, just the multiplication is included. sizeof(int[i]) (well if it was valid C++, it is valid C99) is defined as a multiplication so it is not an implemenation detail. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19351