Index: unittests/ADT/ArrayRefTest.cpp =================================================================== --- unittests/ADT/ArrayRefTest.cpp +++ unittests/ADT/ArrayRefTest.cpp @@ -134,7 +134,8 @@ } TEST(ArrayRefTest, InitializerList) { - ArrayRef A = { 0, 1, 2, 3, 4 }; + std::initializer_list init_list = { 0, 1, 2, 3, 4 }; + ArrayRef A = init_list; for (int i = 0; i < 5; ++i) EXPECT_EQ(i, A[i]);