<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 --- - with unique_ptr, compiles, when inherit from unique_ptr, get not complete error"
href="https://llvm.org/bugs/show_bug.cgi?id=24485">24485</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>with unique_ptr, compiles, when inherit from unique_ptr, get not complete error
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</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>cppljevans@suddenlink.net
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14736" name="attach_14736" title="source code">attachment 14736</a> <a href="attachment.cgi?id=14736&action=edit" title="source code">[details]</a></span>
source code
When using plain unique_ptr, compile succeeds; however, when
using var_rhs_ptr which just inherits from unique_ptr, and
doesn't add any fields for methods, compile fails with message
about var_rhs_ptr being incomplete.
Attached source code has macro, INHERIT_UNIQUE, which, when
defined, causes var_rhs_ptr to inherit from unique_ptr; otherwise,
var_rhs_ptr is a template alias for unique_ptr.
Attached compile output shows g++ works as expected, and,
when !defined(INHERIT_UNIQUE) clang works as expected; however,
when defined(INHERIT_UNIQUE), clang fails compilation.
The compile output shows the OS and versions of g++ and clang++.</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>