<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63635>63635</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang shouldn't silently ignore multiple `abi_tag`s
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:frontend
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
philnik777
</td>
</tr>
</table>
<pre>
Currently, clang silently ignores a second `abi_tag` attribute on functions (maybe also other symbols, I haven't checked). GCC does the same thing, but instead ignored the first `abi_tag`, leading to differently mangled names. I think it's fine to only allow a single attribute, but there should be some sort of diagnostic.
https://godbolt.org/z/G5ra4Mvvc
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUstu3DAM_Br5QsSw5fVjDz6kGzjIod9QSBZts5GlhUhvsf36wt4UQXKhAGGGnCHHMNMcEHtV_1D1S2Y2WWLqrwv5QO9t22Y2unt_2VLCIP6u9AVGb8IMTP74AZpDTMhggHGMwYFqCmPpl5hZNQUYkUR2E4QYYNrCKBQDg9Ldau4WwXiOEGXBBHxfbfS8z3iDxdwwKN0KjAuO7-iUPufwermAi8ggCwKbFUEWCvNOsZsABRY07kOTO1ATJZavona4R-MozCARHE0TPvzBasLs0UEwK3IOb0f_dyBRumWYKODOiMHfwXgf_-y2aad8Gv0vZveEwEvcvAOLwHHdSxKIEzgyc4gsNOaqeFHF86MuIldW1bPSg9LDHJ2NXvKYZqWHv0oPr3Uyp5-32_iAZ66v3Lk6mwz7suk6XeuybrOlN4VB67DUZe0K29pTdWpK58ZST91kmjajXhe6Ktqi1Lqu6zZ35-5cGu3Kbuqm8dSpU4GrIZ97f1t3BRkxb9g3VVPVmTcWPR-p0foIhKqepxSDYHBK6z1Lqd-pT3abWZ0KTyz82UxIPPaXR5SOFT2O_S1WsG5e6Orx6wE525Lvvy2LZNlsPsZV6WGf8_E8XVP8jaMoPRwOWOnhMPEvAAD__19d_Vo">