C++11: Make expression-list expand to initializer-list.

This will fix a couple more places where brace-init-lists and
pack expansions are allowed but are not currently accepted by
the parser. For example:

foo(abc...);

now parses correctly.

Change-Id: I93710cef35154fea8437329f3174e4a2d56637b8
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Christian Kamm
2012-09-19 10:09:55 +02:00
committed by hjk
parent 0c3acb80c8
commit 2aa27e6d22
4 changed files with 12 additions and 35 deletions
@@ -0,0 +1,4 @@
template <class ... Args>
int foo(Args args...) {
bar(args..., {args...}, e, f);
}
+1
View File
@@ -145,6 +145,7 @@ void tst_cxx11::parse_data()
QTest::newRow("aliasDecl.1") << "aliasDecl.1.cpp" << "";
QTest::newRow("enums.1") << "enums.1.cpp" << "";
QTest::newRow("templateGreaterGreater.1") << "templateGreaterGreater.1.cpp" << "";
QTest::newRow("packExpansion.1") << "packExpansion.1.cpp" << "";
}
void tst_cxx11::parse()