A procedure can only be renamed as a procedure. Either of a function or operator can be renamed
as either of a function or operator; for renaming as an operator, the subprogram specification
given in the renaming declaration is subject to the rules given in section 6.7 for operator
declarations. Enumeration literals can be renamed as functions; similarly, attributes defined as
functions (such as SUCC and PRED) can be renamed as functions. An entry can only be renamed as a
procedure; the new name is only allowed to appear in contexts that allow a procedure name. An
entry of a family can be renamed, but an entry family cannot be renamed as a whole.
8.7 The Context of Overload Resolution (paragraphs 4 5 6)8.7 The Context of Overload Resolution (paragraphs 4 5 6)8.7 The Context of Overload Resolution (paragraphs 4 5 6)
- A declaration.
- A statement.
-1 The Context of Overload Resolution (paragraphs 4 5 6) 8.7
- A representation clause.
8.7 The Context of Overload Resolution (paragraph 10)8.7 The Context of Overload Resolution (paragraph 10)8.7 The Context of Overload Resolution (paragraph 10)
When considering possible interpretations of a complete context, the only rules considered are the
syntax rules, the scope and visibility rules, and the rules of the form described below.
8.7 The Context of Overload Resolution (paragraph 12)8.7 The Context of Overload Resolution (paragraph 12)8.7 The Context of Overload Resolution (paragraph 12)
(b) Any rule that requires the type of a name or expression to be a type of a certain class;
similarly, any rule that requires a certain type to be a discrete, integer, real, universal,
character, boolean, or nonlimited type.
8.7 The Context of Overload Resolution (paragraph 15)8.7 The Context of Overload Resolution (paragraph 15)8.7 The Context of Overload Resolution (paragraph 15)
(e) The rules that require the type of an aggregate or string literal to be determinable solely
from the enclosing complete context (see 4.3 and 4.2). Similarly, the rules that require the
type of the prefix of an attribte, the type of the expression of a case statement, or the
type of the operand of a type conversion, to be determinable independently of the context
(see 4.1.4, 5.4, 4.6, and 6.4.1).
8.7 The Context of Overload Resolution (paragraph 16)8.7 The Context of Overload Resolution (paragraph 16)8.7 The Context of Overload Resolution (paragraph 16)
(f) The rules given in section 6.6, for the resolution of overloaded subprogram calls; in
section 4.6, for the implicit conversions of universal expressions; in section 3.6.1, for
the interpretation of discrete ranges with bounds having a universal type; and in section
4.1.3, for the interpretation of an expanded name whose prefix denotes a subprogram or an
accept statement.
8.7 The Context of Overload Resolution (paragraph 22 (new))8.7 The Context of Overload Resolution (paragraph 22 (new))8.7 The Context of Overload Resolution (paragraph 22 (new))
Rules that require certain constructs to have the same parameter and result type profile fall
under the category (a); the same holds for rules that require conformance of two constructs since
conformance requires that corresponding names be given the same meaning by the visibility and
overloading rules.
8.7 The Context of Overload Resolution (paragraph 22)8.7 The Context of Overload Resolution (paragraph 22)8.7 The Context of Overload Resolution (paragraph 22)
8.7 The Context of Overload Resolution (paragraph 22 (new)) -2
8.7 The Context of Overload Resolution (paragraph 23)8.7 The Context of Overload Resolution (paragraph 23)8.7 The Context of Overload Resolution (paragraph 23)
representation clause 13.3, generic parameter association 12.3.1, index constraint 3.6.1, index
expression 4.1.1 4.1.2 9.5, initial value 3.2.1, membership test 4.5.2, parameter association
6.4.1, parameter and result type profile 8.5 12.3.6, qualified expression 4.7, range constraint
3.5, renaming of an object 8.5, result expression 5.8
8.7 The Context of Overload Resolution (paragraph 24)8.7 The Context of Overload Resolution (paragraph 24)8.7 The Context of Overload Resolution (paragraph 24)