c++: fix initializer_list transformation [PR108071]