http://llvm.org/bugs/show_bug.cgi?id=20222
Bug ID: 20222
Summary: Erroneous overload resolution with multiple direct
bases
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
The following snippet results in a static_assert failure, I believe the
overload resolution should be ambiguous instead:
template <int I>
struct int_ {};
template <int I>
void foo(int_<I>){ static_assert(I != 1, ""); }
struct bar : int_<0>, int_<1> {};
int main() {
foo(bar{});
}
--
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