Re: Question regarding stdcall function pointers

2013-04-04 Thread Ian Lance Taylor
On Thu, Apr 4, 2013 at 7:26 AM, Sebastian Hartte wrote: > > I have a question regarding the declaration of function pointers with > stdcall calling convention. This question is not appropriate for the mailing list gcc@gcc.gnu.org, which is for the development of GCC. It would be appropriate for

Question regarding stdcall function pointers

2013-04-04 Thread Sebastian Hartte
Hello, I have a question regarding the declaration of function pointers with stdcall calling convention. This compiles for me (using g++ -c test.cpp -o test.o): typedef struct _a { int (__stdcall *a)(); } a; While this does not: typedef struct _t { } t; typedef struct _a { t (__stdc