[cfe-commits] [PATCH] Virtual methods with mismatched calling conventions

Aaron Ballman aaron at aaronballman.com
Thu Dec 6 07:07:00 PST 2012


Ping?

On Sat, Dec 1, 2012 at 1:36 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
> This patch addresses PR14339 so that you are no longer able to
> override a member function with mismatched calling conventions.  Eg)
>
> class E {
> public:
>   virtual void __attribute__((stdcall)) g();
> };
>
> class F : public E {
> public:
>   void g();
> };
>
> In order to accomplish this, the patch adds some functionality to the
> TargetInfo subclasses so they can decide the default calling
> convention based off the type of function it is to be attached to,
> when that information is available.
>
> Comments and suggestions welcome!
>
> ~Aaron



More information about the cfe-commits mailing list