Add an extension to avoid an error when a global template has the same name as
a member template, and you try to call the member template with an explicit template argument. See PR7247 For example, this downgrades the error to a warning in: template<typename T> struct set{}; struct Value { template<typename T> void set(T value) { } }; void foo() { Value v; v.set<double>(3.2); // Warning here. } git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105518 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/UsersManual.html 24 additions, 0 deletionsdocs/UsersManual.html
- include/clang/Basic/DiagnosticGroups.td 1 addition, 0 deletionsinclude/clang/Basic/DiagnosticGroups.td
- include/clang/Basic/DiagnosticSemaKinds.td 3 additions, 0 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- lib/Sema/SemaTemplate.cpp 3 additions, 2 deletionslib/Sema/SemaTemplate.cpp
- test/CXX/basic/basic.lookup/basic.lookup.classref/p1.cpp 46 additions, 0 deletionstest/CXX/basic/basic.lookup/basic.lookup.classref/p1.cpp
Loading
Please register or sign in to comment