#include <iostream>
#include <initializer_list>
#include <array>
int main() {
int arr1[] = { 1, 2, 3 }; // OK
std::array<int, 3> arr2 = { 1, 2, 3 }; // OK
std::initializer_list<int> il = { 1, 2, 3 };
constexpr std::initializer_list<int> il_constexpr = { 1, 2, 3 };
//int arr3[] = il; // error
//int arr4[] = il_constexpr; // error
//std::array<int, 3> arr5 = il; // error
//std::array<int, 3> arr6 = il_constexpr; // error
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW5pdGlhbGl6ZXJfbGlzdD4KI2luY2x1ZGUgPGFycmF5PgoKaW50IG1haW4oKSB7CgkKCWludCBhcnIxW10gPSAgeyAxLCAyLCAzIH07CS8vIE9LCglzdGQ6OmFycmF5PGludCwgMz4gYXJyMiA9ICB7IDEsIDIsIDMgfTsJLy8gT0sKCQoJc3RkOjppbml0aWFsaXplcl9saXN0PGludD4gaWwgPSB7IDEsIDIsIDMgfTsKCWNvbnN0ZXhwciBzdGQ6OmluaXRpYWxpemVyX2xpc3Q8aW50PiBpbF9jb25zdGV4cHIgPSB7IDEsIDIsIDMgfTsKCQoJLy9pbnQgYXJyM1tdID0gaWw7CS8vIGVycm9yCgkvL2ludCBhcnI0W10gPSBpbF9jb25zdGV4cHI7CS8vIGVycm9yCgkKCS8vc3RkOjphcnJheTxpbnQsIDM+IGFycjUgPSAgaWw7CS8vIGVycm9yCgkvL3N0ZDo6YXJyYXk8aW50LCAzPiBhcnI2ID0gIGlsX2NvbnN0ZXhwcjsJLy8gZXJyb3IKCglyZXR1cm4gMDsKfQ==