This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/11893] stdcall pointers to member-functions handled wrong


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11893



------- Additional Comments From boaz at hishome dot net  2003-08-12 13:49 -------
Sorry to be picky, but wrong again. The problem is that GCC will not let me
define an stdcall pointer to member-function. The bad line above is:

      void ( AFoo:*func )(int,int,int) ; // BAD

it should be:

      void ( __attribute((stdcall)) AFoo:*func )(int,int,int) ; // GOOD but ...

but this line produces an error where it shouldn't. And Also:

     func = &AFoo::foo

This line should produce an error (type mismatch) where it is bypassed
unsuspectedly 

Note the good syntax when none member are used (in the second example above)


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