https://llvm.org/bugs/show_bug.cgi?id=30554
Bug ID: 30554 Summary: "reference to non-static member function must be called" error given twice Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangb...@nondot.org Reporter: zi...@kayari.org CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified struct A { int foo(); }; A a; auto x = a.foo; prog.cc:6:12: error: reference to non-static member function must be called; did you mean to call it with no arguments? auto x = a.foo; ~~^~~ () prog.cc:6:12: error: reference to non-static member function must be called; did you mean to call it with no arguments? auto x = a.foo; ~~^~~ () 2 errors generated. If "int" is used instead of "auto" there is only one error. -- 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