Closed m-kru closed 7 months ago
The expression (x"00000000")
isn't a one element array aggregate, it's a parenthesised expression equivalent to x"00000000"
. You need to use a named association in this case, i.e. (0 => x"00000000")
. See section 9.3.3.1 in the 2008 LRM:
Aggregates containing a single element association shall always be specified using named association in order to distinguish them from parenthesized expressions.
Why does the following work:
but this one does not:
I get
Is it defined in the LRM that I have to explicitly define type of the initial value in the case of one element arrays?