[Bug target/14333] [3.3 Regression] __stdcall in function declaration in structure ignored?
buytenh at gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Feb 28 21:24:00 GMT 2004
------- Additional Comments From buytenh at gnu dot org 2004-02-28 21:24 -------
Subject: Re: [3.3 Regression] __stdcall in function declaration in structure ignored?
Gah, Danny is right.
1. void __stdcall (*example_method)(void);
2. void (__stdcall * example_method)(void);
3. void (* __stdcall example_method)(void);
Indeed, (2) does the right thing, while in (1) and (3) the __stdcall seems
to be just ignored.
If (1) and (3) are wrong, can we make them throw a warning for the unsuspecting
user? Or does (1) and (3)'s way of using __stdcall specify an even subtly
different meaning? Maybe it's just better altogether to make (1) and (3) do
the same thing as (2)?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14333
More information about the Gcc-bugs
mailing list