<html>
<head>
<base href="https://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 --- - lld build failure with GCC"
href="https://llvm.org/bugs/show_bug.cgi?id=30438">30438</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld build failure with GCC
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>willdtz@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>~~/llvm/tools/lld/ELF/LinkerScript.cpp: In member function 'void
lld::elf::LinkerScript<ELFT>::assignOffsets(lld::elf::OutputSectionCommand*)':
~~/llvm/tools/lld/ELF/LinkerScript.cpp:450:8: error: inconsistent deduction for
'auto': 'auto' and then
'__gnu_cxx::__normal_iterator<std::unique_ptr<lld::elf::BaseCommand>*,
std::vector<std::unique_ptr<lld::elf::BaseCommand> > >'
for (auto I = E, E = Cmd->Commands.end(); I != E; ++I)
^~~~
When building lld with GCC 6.2.0.
Relevant line:
<a href="https://github.com/llvm-mirror/lld/blob/master/ELF/LinkerScript.cpp#L450">https://github.com/llvm-mirror/lld/blob/master/ELF/LinkerScript.cpp#L450</a>
While I'm curious as to why exactly GCC is unhappy here (and whether it's
"right" to reject it), it seems worth fixing anyway :).</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>