array extended initializer lists

Hi,
is it possible, with some compiler option, to compile the following
code with clang?
//------------------------------------
int main(){

  int x[10];

  x={1,2,3,4,5,6,7,8,9,0};

}
//-------------------------------------

I tried this

clang -c main.cc -std=gnu++11

and got the following error:

main.cc:5:4: error: array type 'int [10]' is not assignable
  x={1,2,3,4,5,6,7,8,9,0};

then without options

clang -c main.cc

I got the following error:

main.cc:5:5: error: expected expression
  x={1,2,3,4,5,6,7,8,9,0};

thank you

V

This is not a correct program, so I don't think any option exists to compile it.
You can't compile this program with gcc as well:
$ gcc t.c -o t
t.c: In function ‘main’:
t.c:3: error: expected expression before ‘{’ token

Hi,
is it possible, with some compiler option, to compile the following
code with clang?
//------------------------------------
int main(){

int x[10];

x={1,2,3,4,5,6,7,8,9,0};

}
//-------------------------------------

If you’re prepared to change the code, this is valid* C++11:

int main() {
struct { int x[10]; } s;
s = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };
}

I tried this

clang -c main.cc -std=gnu++11

and got the following error:

main.cc:5:4: error: array type ‘int [10]’ is not assignable
x={1,2,3,4,5,6,7,8,9,0};

You’ll also need a newer Clang.

[*] According to a current discussion on CWG, and according to Clang and GCC. Not according to the standard.