This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGda555f750ab2: [clang-repl] Additional test for disambiguation of templates (authored by Hahnfeld).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D157477/new/ https://reviews.llvm.org/D157477 Files: clang/test/Interpreter/disambiguate-decl-stmt.cpp Index: clang/test/Interpreter/disambiguate-decl-stmt.cpp =================================================================== --- clang/test/Interpreter/disambiguate-decl-stmt.cpp +++ clang/test/Interpreter/disambiguate-decl-stmt.cpp @@ -11,6 +11,10 @@ namespace ns1 { template<typename T> void tmplt(T &) {}} int arg_tmplt = 12; ns1::tmplt(arg_tmplt); +namespace ns2 { template <typename T> struct S {}; } +namespace ns3 { struct A { public: using S = int; }; } +namespace ns3 { A::S f(A::S a); } + // ParseStatementOrDeclaration returns multiple statements. #ifdef MS int g_bFlag = 1;
Index: clang/test/Interpreter/disambiguate-decl-stmt.cpp =================================================================== --- clang/test/Interpreter/disambiguate-decl-stmt.cpp +++ clang/test/Interpreter/disambiguate-decl-stmt.cpp @@ -11,6 +11,10 @@ namespace ns1 { template<typename T> void tmplt(T &) {}} int arg_tmplt = 12; ns1::tmplt(arg_tmplt); +namespace ns2 { template <typename T> struct S {}; } +namespace ns3 { struct A { public: using S = int; }; } +namespace ns3 { A::S f(A::S a); } + // ParseStatementOrDeclaration returns multiple statements. #ifdef MS int g_bFlag = 1;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits