You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0efcf62
Browse filesBrowse the repository at this point in the historyBrowse files
Subscript a GNU vector xvalue in constant evaluation [GH #90]
With Core issue 616, a GNU vector member of a class prvalue (e.g.,
"X{...}.v") is an xvalue, but eok_vector_subscript took the address path
only for lvalues, so it read the operand's address as the vector value:
"X{{10, 20, 30, 40}}.v[3]" evaluated to 3 instead of 40. Xvalues now take
the address path too.
The element is then read through its address, so it must be marked
initialized. When a class member of vector type was initialized
(extract_value_from_constant), only the bit for its first element was set,
so "X{a * a}.v[3]" (and "X x{a}; x.v[3]") gave "access to uninitialized
object". Each element of such a member is now marked.
Tests: regressions/gh-90-vector.
0 commit comments