<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rafael.espindola@gmail.com" title="Rafael Ávila de Espíndola <rafael.espindola@gmail.com>"> <span class="fn">Rafael Ávila de Espíndola</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - A @@ version cannot be undefined"
   href="https://llvm.org/bugs/show_bug.cgi?id=24023">bug 24023</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>ASSIGNED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>DUPLICATE
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - A @@ version cannot be undefined"
   href="https://llvm.org/bugs/show_bug.cgi?id=24023#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - A @@ version cannot be undefined"
   href="https://llvm.org/bugs/show_bug.cgi?id=24023">bug 24023</a>
              from <span class="vcard"><a class="email" href="mailto:rafael.espindola@gmail.com" title="Rafael Ávila de Espíndola <rafael.espindola@gmail.com>"> <span class="fn">Rafael Ávila de Espíndola</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=24023#c9">comment #9</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=24023#c5">comment #5</a>)
> > This shows up in openmp code when compiling with -flto:
> > 
> > [  245s] FAILED: : && /opt/clang/bin/clang  -fPIC -flto -fuse-ld=gold -fPIC

> This looks like the same issue as
> <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - openmp code prevents lto bootstrap"
   href="show_bug.cgi?id=25679">https://llvm.org/bugs/show_bug.cgi?id=25679</a> where it is clear that the
> problem is a result of LTO. 
> The OpenMP runtime code is obeying the rules, and it's LTO which causes the
> problem.</span >

I agree. Marking as a duplicate since that one has a more complete diagnostic.

*** This bug has been marked as a duplicate of <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - openmp code prevents lto bootstrap"
   href="show_bug.cgi?id=25679">bug 25679</a> ***</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>