<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [3.6] assertion failed when using -flto with undefined symbols"
   href="http://llvm.org/bugs/show_bug.cgi?id=22351">22351</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[3.6] assertion failed when using -flto with undefined symbols
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>gold-plugin
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sgvozdar@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Reproducer:

int foo();
int main()
{
    return foo();
}

#3.6
$ clang -flto main.cpp
repo/tools/gold/gold-plugin.cpp:636: std::unique_ptr<Module>
getModuleForFile(llvm::LLVMContext &, <anonymous>::claimed_file &,
llvm::raw_fd_ostream *, StringSet<> &, StringSet<> &): Assertion
`GV->hasComdat()' failed.
clang: error: unable to execute command: Aborted (core dumped)
clang: error: linker command failed due to signal (use -v to see invocation)

#trunk
$ clang -flto main.cpp
clang: error: linker command failed with exit code 1 (use -v to see invocation)



Sergey Gvozdarev
===============
Software Engineer
Intel Compiler Team</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>