[llvm-bugs] [Bug 32779] New: add note for where overloaded function types came from

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 24 17:50:52 PDT 2017


            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: unassignedclangbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

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
      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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170425/28eb2a32/attachment.html>

More information about the llvm-bugs mailing list