https://llvm.org/bugs/show_bug.cgi?id=28563
Bug ID: 28563 Summary: Incorrect error on operator() being an member in template Product: clang Version: 3.0 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangb...@nondot.org Reporter: tomasz...@gmail.com CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified Following class correctly compiles without any error in Clang 3.0: struct NonTemplate { typedef void type(); type operator(); //Actually declares an member function. }; However in case of the class template: template<typename T> struct Template { typedef T type; T operator(); }; Followinge error is generated: error: declaration of 'operator()' as non-function T operator(); Despite the fact that Template<void()> is identical to NonTemplate. -- 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