This is the mail archive of the gcc-patches@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]

New C++ testcase


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; }



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