<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:efriedma@codeaurora.org" title="Eli Friedman <efriedma@codeaurora.org>"> <span class="fn">Eli Friedman</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Meyers' singleton does not work with [[gnu::pure]] and -O1 to -O3"
   href="https://bugs.llvm.org/show_bug.cgi?id=36750">bug 36750</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>INVALID
           </td>
           <td>---
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Meyers' singleton does not work with [[gnu::pure]] and -O1 to -O3"
   href="https://bugs.llvm.org/show_bug.cgi?id=36750#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Meyers' singleton does not work with [[gnu::pure]] and -O1 to -O3"
   href="https://bugs.llvm.org/show_bug.cgi?id=36750">bug 36750</a>
              from <span class="vcard"><a class="email" href="mailto:efriedma@codeaurora.org" title="Eli Friedman <efriedma@codeaurora.org>"> <span class="fn">Eli Friedman</span></a>
</span></b>
        <pre>s_myClass is a global variable, and myClass() modifies it, so it's not pure. 
At least, that's how it works from LLVM's perspective.

If that doesn't actually match gcc's behavior, we could possibly change LLVM, I
guess?  But we'd need more evidence gcc actually implements a different rule.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>