https://bugs.llvm.org/show_bug.cgi?id=35664

            Bug ID: 35664
           Summary: reference_wrapper doesn't handle function pointers
                    with C-style varargs
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: mclow.li...@gmail.com
                CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com

The following code should compile, but doesn't

    #include <functional>

    int f(const char*, ...) { return 0; }
    std::reference_wrapper fr{f};
    decltype(fr)::result_type i;

    struct X {
        int f(const char*, ...) { return 0; }
    };
    auto xf = &X::f;
    std::reference_wrapper xfr{xf};
    decltype(xfr)::result_type j;

    int main() {}

Reported by Jonathan Wakeley

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to