|
31 | 31 | Clauses. |
32 | 32 | \end{note} |
33 | 33 |
|
| 34 | +\rSec1[basic.name]{Names and entities} |
| 35 | + |
34 | 36 | \pnum |
35 | 37 | A \defn{name} is an \grammarterm{identifier}\iref{lex.name}, |
36 | 38 | \grammarterm{conversion-function-id}\iref{class.conv.fct}, |
|
171 | 173 | \indextext{declaration!definition versus}% |
172 | 174 | \indextext{declaration}% |
173 | 175 | \indextext{declaration!name}% |
174 | | -A declaration\iref{basic.pre} may (re)introduce |
| 176 | +A declaration\iref{basic.name} may (re)introduce |
175 | 177 | one or more names and/or entities into a translation |
176 | 178 | unit. |
177 | 179 | If so, the |
|
377 | 379 | \item a class type\iref{class}, |
378 | 380 | \item an enumeration type\iref{dcl.enum}, |
379 | 381 | \item a function\iref{dcl.fct}, |
380 | | -\item a variable\iref{basic.pre}, |
| 382 | +\item a variable\iref{basic.name}, |
381 | 383 | \item a templated entity\iref{temp.pre}, |
382 | 384 | \item a default argument for a parameter |
383 | 385 | (for a function in a given scope)\iref{dcl.fct.default}, or |
|
587 | 589 | invoked\iref{class.dtor}. |
588 | 590 |
|
589 | 591 | \pnum |
590 | | -A local entity\iref{basic.pre} |
| 592 | +A local entity\iref{basic.name} |
591 | 593 | is \defn{odr-usable} in a scope\iref{basic.scope.scope} if |
592 | 594 | \begin{itemize} |
593 | 595 | \item either the local entity is not \tcode{*\keyword{this}}, or |
|
1248 | 1250 |
|
1249 | 1251 | \pnum |
1250 | 1252 | \indextext{declaration!locus|see{locus}}% |
1251 | | -The \defn{locus} of a declaration\iref{basic.pre} that is a declarator |
| 1253 | +The \defn{locus} of a declaration\iref{basic.name} that is a declarator |
1252 | 1254 | is immediately after the complete declarator\iref{dcl.decl}. |
1253 | 1255 | \begin{example} |
1254 | 1256 | \begin{codeblock} |
|
1716 | 1718 | A \defnadj{single}{search} in a scope $S$ |
1717 | 1719 | for a name $N$ from a program point $P$ |
1718 | 1720 | finds all declarations that precede $P$ |
1719 | | -to which any name that is the same as $N$\iref{basic.pre} is bound in $S$. |
| 1721 | +to which any name that is the same as $N$\iref{basic.name} is bound in $S$. |
1720 | 1722 | If any such declaration is a \grammarterm{using-declarator} |
1721 | 1723 | whose terminal name\iref{expr.prim.id.unqual} |
1722 | 1724 | is not dependent\iref{temp.dep.type}, |
|
2839 | 2841 | whose converted \grammarterm{constant-expression} represents |
2840 | 2842 | a construct $X$ is said to \defn{designate} either |
2841 | 2843 | \begin{itemize} |
2842 | | -\item the underlying entity of $X$ if $X$ is an entity\iref{basic.pre}, or |
| 2844 | +\item the underlying entity of $X$ if $X$ is an entity\iref{basic.name}, or |
2843 | 2845 | \item $X$ otherwise. |
2844 | 2846 | \end{itemize} |
2845 | 2847 | \begin{note} |
|
3459 | 3461 | \end{note} |
3460 | 3462 | The properties of an |
3461 | 3463 | object are determined when the object is created. An object can have a |
3462 | | -name\iref{basic.pre}. An object has a storage |
| 3464 | +name\iref{basic.name}. An object has a storage |
3463 | 3465 | duration\iref{basic.stc} which influences its |
3464 | 3466 | lifetime\iref{basic.life}. An object has a |
3465 | 3467 | type\iref{basic.types}. |
|
5669 | 5671 | \begin{itemize} |
5670 | 5672 | \item a value of scalar type\iref{temp.param}, |
5671 | 5673 | \item an object with static storage duration\iref{basic.stc}, |
5672 | | -\item a variable\iref{basic.pre}, |
| 5674 | +\item a variable\iref{basic.name}, |
5673 | 5675 | \item a structured binding\iref{dcl.struct.bind}, |
5674 | 5676 | \item a function\iref{dcl.fct}, |
5675 | 5677 | \item a function parameter, |
|
0 commit comments