https://llvm.org/bugs/show_bug.cgi?id=25179
Bug ID: 25179 Summary: clang (incorrectly) requires template keyword in non-dependent expression Product: clang Version: 3.7 Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangb...@nondot.org Reporter: vanya...@gmail.com CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified I believe that in the following example "template" keyword is not required as expression "f()" is not type dependent. It's a call to a function in current instantiation and this can not be altered by any specialization. class B { public: template<typename T> T f() { return T{}; } }; template<typename T> class C { public: B f() { return{}; } C() { f().template f<int>(); // here (!) } }; int main() { C<int> p; } -- 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