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: unassignedclangb...@nondot.org Reporter: xaxa...@gmail.com CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs