<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/86520>86520</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Change in behavior in inline variable handling between clang version
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          jfalcou
      </td>
    </tr>
</table>

<pre>
    Repro code : 
https://godbolt.org/z/bnbof95oo

Removing inline from the declaration of my_wrapper seems to cause the issue to go away.
ASAN and UB santiizers report nothing
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckUGPpCAQhX8NXirTUZRpPXDo2YnHPcxmz5tCSmWClAG00_PrN9qTbLIXIOTlvXpfYUpuCkRaqDeh3gvc8sxRf47oB94Kw_ahP2iNDANbAlHfQJTvorzNOa9J1DcheyH7ia1hny8cJyH7LyF7EwyPnWJ-yp_nBy28uzCBC94FgjHyAnkmsDR4jJgdB-ARlsefe8R1pQiJaEmQGQbcEp1il9JGx9fEgHd8XJ7mt1-3n4DBwu83SBiyc18UE0RaOWYInGcXpsLq2nZ1hwXp6lpVdVu1nSxmXZfjeDVjU2HTSSMVvTbm2naEpm2lbevCaVnKpqylqpSq6uqCg1WqHl-pqxqsUImmpAWdv3i_LweJ4hxUt69KloVHQz6dmKUcPIZJSHkQj_rQv5htSqIpvUs5_XPILnvSP2YME4ELYGjG3XE83t8Md4wOjSeYMVh_wDWU70QBzhTYKSbHodii1_8tzeV5M5eBFyH7I_L7elkjf9KQhezPBknI_izxNwAA__8UdLbv">