This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/2680: operator new override bug



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]