mingw32 (gcc 2.95 on Windows) - member function pointer problem
LauraM3017@aol.com
LauraM3017@aol.com
Fri Sep 24 17:30:00 GMT 1999
Am currently running gcc 2.95 (mingw32) on a Windows NT machine.
I need an array of member function pointers for use in calling a
particular member function within its class. The technique I'm using
is based on the information I got from the C++ FAQ. The program worked
fine with the previous version of mingw32. Am sending a very simplified
version of the code that still shows the bug.
Below is the command line and output. Attached is the zipped .ii file.
Thanks.
Laura Michaels
> cd .
> g++ -c egcstest.cpp
A:\>g++ -c egcstest.cpp
egcstest.cpp: In method `void eval::function_map(int)':
egcstest.cpp:42: taking the address of a non-static member function
egcstest.cpp:42: to form a pointer to member function, say `&eval::do_func1'
egcstest.cpp:42: taking the address of a non-static member function
egcstest.cpp:42: to form a pointer to member function, say `&eval::do_func2'
egcstest.cpp:42: taking the address of a non-static member function
egcstest.cpp:42: to form a pointer to member function, say `&eval::do_func3'
egcstest.cpp:43: taking the address of a non-static member function
egcstest.cpp:43: to form a pointer to member function, say `&eval::do_func4'
egcstest.cpp:43: taking the address of a non-static member function
egcstest.cpp:43: to form a pointer to member function, say `&eval::do_func5'
egcstest.cpp:43: Internal compiler error in `const_hash', at varasm.c:2372
Please submit a full bug report.
See <URL: http://egcs.cygnus.com/faq.html#bugreport > for instructions.
More information about the Gcc-bugs
mailing list