<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 --- - Unimplemented/Sorry: Template parameter of pointer-to-member-variable type can't accept pointer to base-class member."
href="https://llvm.org/bugs/show_bug.cgi?id=28823">28823</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unimplemented/Sorry: Template parameter of pointer-to-member-variable type can't accept pointer to base-class member.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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++11
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>xaxazak@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=16866" name="attach_16866" title="trivial c++ example">attachment 16866</a> <a href="attachment.cgi?id=16866&action=edit" title="trivial c++ example">[details]</a></span>
trivial c++ example
I have a template whose parameter is of pointer-to-member-variable type.
I have a valid constexpr pointer-to-member-variable value, which points to the
a member of the type's parent.
Attempting to use this value as the template's parameter fails, giving the
output:
error: sorry, non-type template argument of pointer-to-member type 'int
SBar::*' that refers to member 'SFoo::x' of a different class is not supported
yet
(Error above is generated by compiling attached source)
As the error says "sorry" I guess it might be fixed in a future release, but I
thought it's better to submit a bug just to be sure.</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>