https://llvm.org/bugs/show_bug.cgi?id=23118
Bug ID: 23118
Summary: Poor error message for incompatible member function
reference qualifiers
Product: clang
Version: 3.5
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
struct S {
void f() & {}
};
int main() {
S{}.f();
}
source/main.cpp:6:2: error: cannot initialize object parameter of type 'S' with
an expression of type 'S'
S{}.f();
^~~
The error message should probably reference qualify the S.
--
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