c++/2680: operator new override bug

cwoollat@iafrica.com cwoollat@iafrica.com
Sat Apr 28 21:56:00 GMT 2001


>Number:         2680
>Category:       c++
>Synopsis:       operator new override bug
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 28 21:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Cedric Woollatt
>Release:        2.95
>Organization:
>Environment:
gcc C++
>Description:
void * operator new(unsigned, unsigned);

void * doodaa(unsigned n)
{
 return new (1) int[n];
}

//I used Msc 7 (circa 1990) and it works fine.

>How-To-Repeat:
void * operator new(unsigned, unsigned);

void * doodaa(unsigned n)
{
 return new (1) int[n];
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list