New C++ testcase

Bernd Schmidt bernds@redhat.co.uk
Fri Nov 3 02:48:00 GMT 2000


The testcase below fails with the current g++:

t.cc:3: `operator new' takes type `size_t' as first parameter
t.cc:3: Internal error #73.
t.cc:3: Internal compiler error in process_overload_item, at cp/method.c:1461
   Please submit a full bug report.
   See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

Apparently, this is because in process_overload_item, we don't handle
mangling of size_t.  I'm not familiar enough with the C++ frontend to
decide how this should be fixed properly.

Can I install this in the g++ testsuite?  Which name would be appropriate?


Bernd

typedef unsigned long size_t;
void *a;
inline void *operator new(size_t s, int) { return a; }




More information about the Gcc-patches mailing list