<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59931>59931</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Compile Failure with MingW64 gcc-12
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
YWtheGod
</td>
</tr>
</table>
<pre>
Windows MingW64 with GCC-12
Erro Message:
llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:310:13: error: 'ThreadLocal' in namespace 'llvm::sys' does not name a template type
310 | static sys::ThreadLocal<const void> sCurrentExceptionHandle;
| ^~~~~~~~~~~
//wsl.localhost/Ubuntu-18.04/home/ywthegod/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp: In function 'void installExceptionOrSignalHandlers()':
//wsl.localhost/Ubuntu-18.04/home/ywthegod/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:318:3: error: 'sCurrentExceptionHandle' was not declared in this scope
318 | sCurrentExceptionHandle.set(handle);
| ^~~~~~~~~~~~~~~~~~~~~~~
//wsl.localhost/Ubuntu-18.04/home/ywthegod/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp: In function 'void uninstallExceptionOrSignalHandlers()':
//wsl.localhost/Ubuntu-18.04/home/ywthegod/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:322:43: error: 'sCurrentExceptionHandle' was not declared in this scope
322 | PVOID currentHandle = const_cast<PVOID>(sCurrentExceptionHandle.get());
|
Same Source file can compile in ubuntu with gcc-11
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVU-P4zQU_zQvF2uq-DmZJoccuplmWYnVIgYYcUKO85oYuXZkO9Pthc-OnMwMBbHigBDgQ5r6z8_v9ye2DEGPlqiB8h2UD5lc4uR88-NTnOi9G7LeDdfmSdvBXQL7qO34dF-wi44Te9-2dxwhf4D8cPTesY8UghwJxGHrNOb5fDd79zOpCNilv-lH94Dd4zLPzqfu1sswfUvKPZO_ts5G-hx3ap5BHATPQRy4AHFg5L3z6QVw_93kSQ5fOyUN4J5py6w8U5ilojS8biQOIA7hGtKEwVFg1sV1GpMs0nk2MhKL15m2WhkTPGewb1mIMmrF0tIV43Yz0SpnQ2TPTg8gjiy0i_dk4_GzojlqZ7-SdjAE4t0ramoJFcrjL29tGwTsALtLMDuTwCcXkhzf94uNyx2vdnkB2E3uTIDd9RInGt3wIuPfUpV9sOy0WJXqTXIlMkzbEKUxb0Q--Uc9Wmk2Qj4AVoA14P7N3X-rfMGr9PxjJr5kBe7ZRW7uD6SM9JTIsjjpwIJyt_5Xm_9_DrQLFAGr6QW1_iuPb9t_0O_F_o8cRwRxKP4ByxFX47754dOHB6Y2tA2EgXhg68f-k5IhgmjXSSCOgNWXIjKuEVlVu8kH7NsX_dbnYzqDHt3iFbGTNsSUtEy585zetWXLqud2xI5K3XGeDY0YalHLjBp-vxdFwUteZlNTShx6OilR0UlVOGCvBsoLUfB6j_dYZ7rBHEXOOedY8rLcnegk7xGrguqi51hAkdNZarNLruycHzMdwkJNWdeCZ0b2ZMLrzeCb1cl-GQMUudEhht-WRR0NNe0LjU5qs3jaSLxeGisZzBZvminGeT1e10SNOk5Lv1PufBOP34dmrSoAdmthvwYAAP__cKkw3g">