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

--- Comment #12 from gee <jojelino at gmail dot com> 2011-12-09 22:24:56 UTC ---
Created attachment 26037
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26037
proposed patch

(In reply to comment #11)
> Suggested patch for this issue (together with the pending patch for PR/51135
> for C++) is:
> 
> Index: natClass.cc
> ===================================================================
> --- natClass.cc (revision 182092)
> +++ natClass.cc (working copy)
> @@ -661,7 +661,7 @@
>      throw new java::lang::InstantiationException (getName());
> 
>    jobject r = _Jv_AllocObject (this);
> -  ((void (*) (jobject)) meth->ncode) (r);
> +  ((void (__thiscall *) (jobject)) meth->ncode) (r);
>    return r;
>  }
> 
> It would be kind, if somebody could confirm that it fixes this issue.  I will
> prepare then a final variant of this patch.
yes, it fixes the issue in mingw32.

Reply via email to