<div dir="ltr">To be honest I haven't checked.  The incorrect definition is here:<div><br></div><div><a href="https://sourceforge.net/p/mingw-w64/mingw-w64/ci/d43f63b334eac3eaf6ed66f2206fee5eb67064ec/tree/mingw-w64-headers/include/ntstatus.h#l164">https://sourceforge.net/p/mingw-w64/mingw-w64/ci/d43f63b334eac3eaf6ed66f2206fee5eb67064ec/tree/mingw-w64-headers/include/ntstatus.h#l164</a><br></div><div><br></div><div>You can see that there are unbalanced parentheses in the #define.</div><div><br></div><div>I'm not familiar with the MinGW / GCC community, but if it's straightforward and you point me to the right place and I can submit a bug report.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, May 17, 2017 at 11:01 AM İsmail Dönmez <<a href="mailto:ismail@i10z.com">ismail@i10z.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
Is there a bug reported for this?<br>
<br>
On Wed, May 17, 2017 at 6:39 PM, Zachary Turner via llvm-commits<br>
<<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>> wrote:<br>
> Author: zturner<br>
> Date: Wed May 17 11:39:33 2017<br>
> New Revision: 303272<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=303272&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=303272&view=rev</a><br>
> Log:<br>
> Workaround for incorrect Win32 header on GCC.<br>
><br>
> Modified:<br>
>     llvm/trunk/lib/Support/CrashRecoveryContext.cpp<br>
><br>
> Modified: llvm/trunk/lib/Support/CrashRecoveryContext.cpp<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CrashRecoveryContext.cpp?rev=303272&r1=303271&r2=303272&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CrashRecoveryContext.cpp?rev=303272&r1=303271&r2=303272&view=diff</a><br>
> ==============================================================================<br>
> --- llvm/trunk/lib/Support/CrashRecoveryContext.cpp (original)<br>
> +++ llvm/trunk/lib/Support/CrashRecoveryContext.cpp Wed May 17 11:39:33 2017<br>
> @@ -164,15 +164,13 @@ CrashRecoveryContext::unregisterCleanup(<br>
><br>
>  static LONG CALLBACK ExceptionHandler(PEXCEPTION_POINTERS ExceptionInfo)<br>
>  {<br>
> -#ifdef DBG_PRINTEXCEPTION_WIDE_C<br>
> -  constexpr ULONG WideDbgPrintValue = DBG_PRINTEXCEPTION_WIDE_C;<br>
> -#else<br>
> -  constexpr ULONG WideDbgPrintValue = 0x4001000AL;<br>
> -#endif<br>
> +  // DBG_PRINTEXCEPTION_WIDE_C is not properly defined on all supported<br>
> +  // compilers and platforms, so we define it manually.<br>
> +  constexpr ULONG DbgPrintExceptionWideC = 0x4001000AL;<br>
>    switch (ExceptionInfo->ExceptionRecord->ExceptionCode)<br>
>    {<br>
>    case DBG_PRINTEXCEPTION_C:<br>
> -  case WideDbgPrintValue:<br>
> +  case DbgPrintExceptionWideC:<br>
>    case 0x406D1388:  // set debugger thread name<br>
>      return EXCEPTION_CONTINUE_EXECUTION;<br>
>    }<br>
><br>
><br>
> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>