This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
New C++ testcase
- To: gcc-patches at gcc dot gnu dot org
- Subject: New C++ testcase
- From: Bernd Schmidt <bernds at redhat dot co dot uk>
- Date: Fri, 3 Nov 2000 10:48:54 +0000 (GMT)
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; }