Ping. Thanks, --Serge
2016-02-26 12:20 GMT+06:00 Serge Pavlov <sepavl...@gmail.com>: > Could someone provide a feedback? > > Thanks, > --Serge > > 2016-01-26 20:55 GMT+06:00 Serge Pavlov <sepavl...@gmail.com>: > >> sepavloff created this revision. >> sepavloff added a subscriber: cfe-commits. >> >> Declaration of friend function may depend on template parameters, >> however it does not become a template function: >> >> template<typename T> class C1 { >> friend void func(T x); >> }; >> >> It may be not obvious for user, so compiler could emit a warning in >> such case. This patch implements appropriate warning, the wording is >> taken from GCC message. The patch fixes PR23342. >> >> http://reviews.llvm.org/D16579 >> >> Files: >> include/clang/Basic/DiagnosticGroups.td >> include/clang/Basic/DiagnosticSemaKinds.td >> lib/Sema/SemaDecl.cpp >> test/CXX/drs/dr3xx.cpp >> test/CXX/drs/dr5xx.cpp >> test/CXX/temp/temp.decls/temp.friend/p1.cpp >> test/PCH/cxx-templates.cpp >> test/PCH/cxx-templates.h >> test/SemaCXX/friend.cpp >> test/SemaCXX/overload-call.cpp >> >> >
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits