[llvm-bugs] [Bug 28823] New: Unimplemented/Sorry: Template parameter of pointer-to-member-variable type can't accept pointer to base-class member.
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 2 23:19:32 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28823
Bug ID: 28823
Summary: Unimplemented/Sorry: Template parameter of
pointer-to-member-variable type can't accept pointer
to base-class member.
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: xaxazak at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 16866
--> https://llvm.org/bugs/attachment.cgi?id=16866&action=edit
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160803/e7d3a206/attachment-0001.html>
More information about the llvm-bugs
mailing list