<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:ldionne@apple.com" title="Louis Dionne <ldionne@apple.com>"> <span class="fn">Louis Dionne</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Clang 6 fails to compile boost variant code in unnamed namespace"
href="https://bugs.llvm.org/show_bug.cgi?id=35842">bug 35842</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;">CC</td>
<td>
</td>
<td>ldionne@apple.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Clang 6 fails to compile boost variant code in unnamed namespace"
href="https://bugs.llvm.org/show_bug.cgi?id=35842#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Clang 6 fails to compile boost variant code in unnamed namespace"
href="https://bugs.llvm.org/show_bug.cgi?id=35842">bug 35842</a>
from <span class="vcard"><a class="email" href="mailto:ldionne@apple.com" title="Louis Dionne <ldionne@apple.com>"> <span class="fn">Louis Dionne</span></a>
</span></b>
<pre>The problem is that Boost.Variant incorrectly uses `boost::declval` in an
evaluated context. The compiler correctly diagnoses the invalid usage.
Basically, boost::declval is a never-defined function template. It is
instantiated in a TU with a type that has internal linkage (i.e. defined in an
anonymous namespace), and so the compiler can tell no definition of
boost::declval can ever exist.</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>