Array of member function pointers with typedef

the ProtectR theprotectr@hotmail.com
Thu Jul 20 15:20:00 GMT 2000


Hi
I'm currently learning C++ with a book I bought and when I tried an 
exercice, I got an 'Internal compiler error'. The exercice demonstrated me 
how to to store member function  addresses in an array of pointers.

exemple:

typedef void (Dog::*PDF)() const;

PDF DogFunctions[MaxFuncs] =
		      { &Dog::Speak,
			&Dog::Move,
			&Dog::Eat };




Compiler: GCC-2.952 with DJGPP-2.02

System:   Pentium II 300 MHz, 64 MB RAM, MS Windows 98 2nd Edition (French), 
Diamond Viper 550 video card

Options I passed in the compiler: gxx -o test.exe tutorial.cpp
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: source.zip
Type: application/zip
Size: 6054 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000720/15a63c32/attachment.zip>


More information about the Gcc-bugs mailing list