C++11: Fix parsing of trailing-type-specifier.

In particular "auto foo() -> typename Foo<T>::X;" didn't parse.

Change-Id: I7665c9b387e222e4107f053a529d502813ebf617
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Christian Kamm
2014-05-31 14:55:35 +02:00
parent 4ea8499fdc
commit eee94667e6
5 changed files with 38 additions and 20 deletions
+1
View File
@@ -152,6 +152,7 @@ void tst_cxx11::parse_data()
QTest::newRow("packExpansion.1") << "packExpansion.1.cpp" << "";
QTest::newRow("declType.1") << "declType.1.cpp" << "";
QTest::newRow("threadLocal.1") << "threadLocal.1.cpp" << "";
QTest::newRow("trailingtypespec.1") << "trailingtypespec.1.cpp" << "";
}
void tst_cxx11::parse()