Skip to content

Commit cea53d6

Browse files
languagelawyerzygoloid
authored andcommitted
[basic.lval] Named bit-fields are objects
no need to mention them separately
1 parent 3566bbc commit cea53d6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

source/basic.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3104,8 +3104,8 @@
31043104
\end{note}
31053105

31063106
\pnum
3107-
A \defn{memory location} is either an object of scalar type or a maximal
3108-
sequence of adjacent bit-fields all having nonzero width.
3107+
A \defn{memory location} is either an object of scalar type that is not a bit-field
3108+
or a maximal sequence of adjacent bit-fields all having nonzero width.
31093109
\begin{note}
31103110
Various
31113111
features of the language, such as references and virtual functions, might
@@ -3305,7 +3305,7 @@
33053305
\item is not a potentially-overlapping subobject, or
33063306
\item is not of class type, or
33073307
\item is of a class type with virtual member functions or virtual base classes, or
3308-
\item has subobjects of nonzero size or bit-fields of nonzero length.
3308+
\item has subobjects of nonzero size or unnamed bit-fields of nonzero length.
33093309
\end{itemize}
33103310
Otherwise, if the object is a base class subobject
33113311
of a standard-layout class type

source/expressions.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@
147147
\end{importgraphic}
148148

149149
\begin{itemize}
150-
\item A \defn{glvalue} is an expression whose evaluation determines the identity of an object, bit-field, or function.
151-
\item A \defn{prvalue} is an expression whose evaluation initializes an object or a bit-field,
150+
\item A \defn{glvalue} is an expression whose evaluation determines the identity of an object or function.
151+
\item A \defn{prvalue} is an expression whose evaluation initializes an object
152152
or computes the value of an operand of an operator,
153153
as specified by the context in which it appears,
154154
or an expression that has type \cv{}~\tcode{void}.
155-
\item An \defn{xvalue} is a glvalue that denotes an object or bit-field whose resources can be reused (usually because it is near the end of its lifetime).
155+
\item An \defn{xvalue} is a glvalue that denotes an object whose resources can be reused (usually because it is near the end of its lifetime).
156156
\item An \defn{lvalue} is a glvalue that is not an xvalue.
157157
\item An \defn{rvalue} is a prvalue or an xvalue.
158158
\end{itemize}

0 commit comments

Comments
 (0)