<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 - variant:668:1: error: the parameter for this explicitly-defaulted copy constructor is const, but a member or base requires it to be non-const"
href="https://bugs.llvm.org/show_bug.cgi?id=42097">42097</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>variant:668:1: error: the parameter for this explicitly-defaulted copy constructor is const, but a member or base requires it to be non-const
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>8.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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dmitry.sviridov@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>See the simple example:
<a href="https://wandbox.org/permlink/ZvoFEk5D9PUd3fVX">https://wandbox.org/permlink/ZvoFEk5D9PUd3fVX</a>
If you add const to the line 6, it magically works. So it does if you change
standard to C++2a</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>