-
Bug
-
Resolution: Fixed
-
Medium
-
Code Generation Tools
-
CODEGEN-7681
-
-
-
default
-
Specify length of array in declaration.
The Compiler issues an error when a constexpr array does not specify length, for example:
constexpr char fails[] =
error: expression must have a constant value
There is no error when the length of the array is specified, for example:
constexpr char works[4] = { "string"[0], "string"[1], "string"[2], '0'}
;