<div dir="ltr"><div>Hi</div><div><div>Clang and MSVC accepts the following code.</div><div>But I get </div><div><span style="color:rgb(51,51,51);font-family:Monaco,Menlo,Consolas,'Courier New',monospace;font-size:13px;line-height:20px;white-space:pre-wrap">error: use of 'x' before deduction of 'auto'</span></div><div>with GCC (5.1, C++14 enabled)</div></div><div><br></div><div>int main() {</div><div>  int x[] = {1,2,3,4,5};</div><div>  for (auto x : x) {</div><div>  }</div><div>}</div><div><br></div><div>Thanks,</div><div>Manasij Mukherjee</div></div>