http://bugs.llvm.org/show_bug.cgi?id=32779
Bug ID: 32779
Summary: add note for where overloaded function types came from
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Testcase:
void f(int);
void f(double);
void test() {
auto fptr = &f;
}
Steps to repro:
$ clang bcs.cc -std=c++11
bcs.cc:5:8: error: variable 'fptr' with type 'auto' has incompatible
initializer
of type '<overloaded function type>'
auto fptr = &f;
^ ~~
1 error generated.
We should offer a couple notes pointing at a couple overloads. Maybe all the
overloads subject to -fshow-overloads=...
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs