Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 2797

Problem with static member constexpr array

$
0
0

Good day. 

This code:

-------------------------------  test.c++

#include<array>

struct A { static constexpr std::array<int, 3> data {{ 2, 3, 2}}; };

int main(){}

 ------------------------------

 is compiled just fine with gcc 4.7.1, but the latest (13.1.2.146) icc version returns an error (expected ";" after "data")

command lines:

g++-4.7.1 -std=c++11 test.c++

and 

icc  -std=c++11 test.c++ 

 A you going to fix it? And when.

 Regards


Viewing all articles
Browse latest Browse all 2797

Trending Articles