<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - gcc8 <string> compilation failure"
href="https://bugs.llvm.org/show_bug.cgi?id=36869">36869</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>gcc8 <string> compilation failure
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mib.bugzilla@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I see this fail in godbolt clang trunk, reduced from gcc8 <string> header
preprocessed file, compile in default mode which is c++14
Line 14, redefinition of __not_overloaded, previous def on line 10
namespace std
{
template < typename _Tp > _Tp __declval;
template < typename _Tp > auto declval ()->decltype (__declval < _Tp >);
template < typename ... >using __void_t = void;
template < typename, typename, typename = void >struct __not_overloaded;
template < typename _Tp, typename _Up > struct __not_overloaded <_Tp,
_Up,//line 10
__void_t < decltype (std::declval, std::declval < _Up >) >>
{
};
template < typename _Tp, typename _Up > struct __not_overloaded <_Tp, _Up
<span class="quote">>//line 14</span >
{
};
}</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>