http://llvm.org/bugs/show_bug.cgi?id=17696
Bug ID: 17696
Summary: bogus error when accessing union member through
pointer to member template argument
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
The compiler complains with "error: right hand operand to ->* has non
pointer-to-member type 'int'" for the following code.
struct a
{
union {int i;};
};
template <int (a::*p)>
struct b : a
{
b () {this->*p = 0;}
};
b<&a::i> c;
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs