You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -3551,6 +3552,25 @@ class TestSimplifyTemplate : public TestFixture {
3551
3552
ASSERT_THROW_EQUALS(tok(code), InternalError, "There is an unknown macro here somewhere. Configuration is required. If BEGIN_VERSIONED_NAMESPACE_DECL is a macro then please configure it.");
3552
3553
}
3553
3554
3555
+
voidtemplate150() { // syntax error
3556
+
constchar code[] = "struct Test {\n"
3557
+
" template <typename T>\n"
3558
+
" T &operator[] (T) {}\n"
3559
+
"};\n"
3560
+
"void foo() {\n"
3561
+
" Test test;\n"
3562
+
" const string type = test.operator[]<string>(\"type\");\n"
3563
+
"}";
3564
+
constchar exp[] = "struct Test { "
3565
+
"string & operator[]<string> ( string ) ; "
3566
+
"} ; "
3567
+
"void foo ( ) { "
3568
+
"Test test ; "
3569
+
"const string type = test . operator[]<string> ( \"type\" ) ; "
0 commit comments