[PATCH] Internal compiler error while compiling Moonlight Creator (1.0.3a)
Jeffrey A Law
law@cygnus.com
Thu Jun 11 23:54:00 GMT 1998
In message <199806110539.BAA27249@graviton.res.cmu.edu>you write:
> ++ voidmalloc.cpp (testcase for g++ -falias-check) ++
> class A {
> public:
> void malloc(void) { return; }
> };
>
> int main(int argc, char *argv[]) {
> A a;
> a.malloc();
> return 0;
> }
>
> Tue Jun 11 01:38:44 1998 Michael Poole (poole+@andrew.cmu.edu)
> * calls.c (expand_call): A void expression cannot be the
> result of a malloc-type function call.
Thanks. This has already been fixed in the development tree by
ensuring any of the special symbols recognized by calls.c have
the proper scope before noting if they are a malloc, setjmp, longjmp,
etc.
Jeff
More information about the Gcc-patches
mailing list