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

    <tr>
        <th>Summary</th>
        <td>
            llvm19.1.10 reports an error when compiling spec2006's 483.Xalan
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    483.Xalan of spec2006 can be compiled successfully in both llvm17 and 18 versions, but today when upgrading to llvm19.1.10, an error message appeared while compiling this example。

./xercesc/util/NameIdPool.c:416:20: error: cannot assign to non-static data member 'fMemoryManager' with const-qualified type 'MemoryManager *const'
  416 |     fMemoryManager = toAssign.fMemoryManager;
      |     ~~~~~~~~~~~~~~ ^
./xercesc/util/NameIdPool.hpp:307:26: note: non-static data member 'fMemoryManager' declared const here
  307 |     MemoryManager *const fMemoryManager;
      |     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
1 error generated.

![20240925200341](https://github.com/user-attachments/assets/44b03e88-0d47-47af-b551-eecddf2db65a)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVMGOpDYQ_Rr3pdTI2BiaA4eenWkph41yzLWwC3BkbGKb6e1Lvj2Cnt7ZWUXRaOuAjXjlevXwK0zJjp6oY-qJqecDrnkKsRvQX1djm6qWhz6YW1edZPEnOvQQBkgLacF5DRo99AQ6zIt1ZCCtWlNKw-rcDayHPuQJnHudywbQGyhP8Eox2eATE1-gXzPkYPAG14k8rMsY0Vg_Qg73rLYoi5JvUPRAMYYIM6WEIwEuC2EkA9fJugeFPXeyCegbzosj9iLZibOTYPyZ8fP9WTBx-UZRU9JMXNZsHROX33Gm38wfIbhCM3muyprJs-BMnu91t41G70OGu2QbRx_8MWXMVoPBjDDT3FMEJprhK80h3r6ix5EiEw1cbZ5AB5_y8e8VnR0sGci3hTb4BzQwcd6BTDR3xgBVWQNrvsAWw09o-Qw5nHdSxU915dPjgC0eB_zzIYCpl88JMy0Lk2fJm02aTR_wIdN9_bwQhrTbf9zeI0wU6UFS8uY7yf-WBH6hwbdg6uXj-55Yvl2rkTxFzGSKH68KEyVTT4KLirdCCc5lVTL1zMRpynlJTJ6ZuDBxGW2e1r7QYd6ESxSPmDPqaSafExMXTIn2TVX1XNLpdOSmao5Vg8OxV6o8EmljBmH6WiET7b36wXTStLLFA3VlIxpRq5arw9Rhq2VpSj2QOEmjUWuueINlX6meKqUPtntwLgVXXBZVKbEnUqodasJasYrTjNYVm82KEMeDTWmlruRtW9cHhz25tM8EITxdYf_KhNhGROy2pGO_jolV3NmU0_sx2WZH3Q_mhUhLiDm9O3j3-rtfH8OEiSbB9zFzWKPr_kfkrcLbclxi-It0ZuKy09x0fuvjtRP_BgAA__9ZbY6I">