<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jonathanchesterfield@gmail.com" title="Jon Chesterfield <jonathanchesterfield@gmail.com>"> <span class="fn">Jon Chesterfield</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Declaration conflict between __clang_cuda_math_forward_declares.h and libstdc++"
   href="https://bugs.llvm.org/show_bug.cgi?id=42972">bug 42972</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;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Declaration conflict between __clang_cuda_math_forward_declares.h and libstdc++"
   href="https://bugs.llvm.org/show_bug.cgi?id=42972#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Declaration conflict between __clang_cuda_math_forward_declares.h and libstdc++"
   href="https://bugs.llvm.org/show_bug.cgi?id=42972">bug 42972</a>
              from <span class="vcard"><a class="email" href="mailto:jonathanchesterfield@gmail.com" title="Jon Chesterfield <jonathanchesterfield@gmail.com>"> <span class="fn">Jon Chesterfield</span></a>
</span></b>
        <pre>This is fixed on trunk.

I suspect the problem was that glibc defines these functions as constexpr (for
some c++ versions) and __clang_cuda_math_forward_declares.h did not.

Clang 10.0 did not include constexpr in the definition of __DEVICE__, I haven't
checked what the status was for trunk as of when this bug was opened.

On trunk, the functions are now defined as constexpr, and the failure mode
reported here no longer reproduces.</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>