This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/1779: operator new with wrong argument type crashes compiler
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/1779: operator new with wrong argument type crashes compiler
- From: reichelt at igpm dot rwth-aachen dot de
- Date: 26 Jan 2001 14:16:08 -0000
- Reply-To: reichelt at igpm dot rwth-aachen dot de
>Number: 1779
>Category: c++
>Synopsis: operator new with wrong argument type crashes compiler
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Fri Jan 26 06:26:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Volker Reichelt
>Release: gcc version 2.96.20000920 on IRIX 6.5
>Organization:
>Environment:
IRIX 6.5 on SGI O2 with MIPS R5000 processor
>Description:
A wrong argument type for "new" in a class/struct like
struct Bogus { void* operator new(char); };
causes an ICE:
NewBug.cpp:1: `operator new' takes type `size_t' as first parameter
NewBug.cpp:1: Internal error #73.
NewBug.cpp:1: Internal compiler error in , at cp/method.c:1461
>How-To-Repeat:
g++ -c NewBug.cpp
(assuming the single code line is stored in a
file "NewBug.cpp")
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: