<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/76682>76682</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
const_cast does not cast away __unaligned attribute in windows
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
CurTInq
</td>
</tr>
</table>
<pre>
According to [microsoft documentation](https://learn.microsoft.com/en-us/cpp/cpp/const-cast-operator?view=msvc-170) const_cast must cast away the __unaligned qualifier, however this is not the case in clang: https://godbolt.org/z/Kd3esqoEr
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckcGO2ywUhZ8Gb5AjfG0n9oJFZvJb-tVt9xGGG5sKQwKXWNOnr-yOmmk3gMQ9HM53VEp28oiStW-svRQq0xyifM_x-__-UYzBfMiz1iEa6ydOgbP2bbE6hhRuxE3QeUFPimzwrL0w6Gaie2L1mcHAYHCooj_8ERx0WBgM6MucGAz6fn-twScqtUpUhjtGRSGyenhaXFl9WdJTl9VJMOj5PnjdBvmSE_H9pFb1wWlGfr1mr9wWyfBHVs7eLEYG73wOKz4xcppt4jZxH2gXaJWQW8-1U35i9Zn_HWAKZgyODiFODIafDIZvpsb0CP9FXhhZm77uVYGyOommAuhFW8yyrRrd100Nuu5vojvqTlRmFKJTpgE8ngorQUAjKlFVLXTQHsZR3bBSWtX9aKq2YY3ARVl3cO65bOaFTSmjPB2PHRROjejSXhmAx5XvlwxgazDKTVOOeUqsEc4mSq9XyJJD-QWhCfibxQvjV4SKKNox045otd6ENRU5OvkPJUtzHj_b3cw-t_Ieww_UxGDYv7iVvkf4FQAA___f3NIa">