Title
Normative status of implementation limits
Status
dr
Section
Clause [Annex] B [implimits]
Submitter
ISO/CS

Created on 2024-05-17.00:00:00 last changed 4 months ago

Messages

Date: 2024-06-26.21:17:29

Proposed resolution (approved by CWG 2024-06-26):

  1. Change in 4.1.1 [intro.compliance.general] bullet 2.1 as follows:

    If a program contains no violations of the rules in Clause 5 through Clause 33 and Annex D, a conforming implementation shall, within its resource limits as described in Annex B, accept and correctly execute that program, except when the implementation's limitations (see below) are exceeded.
  2. Insert a new paragraph before 4.1.1 [intro.compliance.general] paragraph 8 as follows:

    An implementation is encouraged to document its limitations in the size or complexity of the programs it can successfully process, if possible and where known. Clause Annex B [implimits] lists some quantities that can be subject to limitations and a potential minimum supported value for each quantity.

    A conforming implementation may have extensions (including additional library functions), ...

  3. Change in Clause Annex B [implimits] paragraph 1 and paragraph 2 as follows:

    Annex B
    (normativeinformative)

    Because computers are finite, C++ implementations are inevitably limited in the size of the programs they can successfully process. Every implementation shall document those limitations where known. This documentation may cite fixed limits where they exist, say how to compute variable limits as a function of available resources, or say that fixed limits do not exist or are unknown.

    The limits may constrain quantities that include those described below or others. Implementations can exhibit limitations for various quantities; some possibilities are presented in the following list. The bracketed number following each quantity is recommended as the a potential minimum value for that quantity. However, these quantities are only guidelines and do not determine compliance.

Date: 2024-05-31.21:07:31

CWG 2024-05-17

CWG was divided whether to relax the documentation requirement or not. As a next step, the wording for a relaxation should be reviewed.

Date: 2024-06-15.00:00:00

[Accepted as a DR at the June, 2024 meeting.]

It is unclear whether Clause Annex B [implimits] is normative, and what its normative content is. The Annex was editorially switched from "informative" to "normative" in September 2020 with this change description:

[intro.compliance.general, implimits] Cite Annex B normatively.

This change also promotes Annex B [implimits] to a "normative" annex. The existing wording in the annex is already normative in character.

On the other hand, this sentence in Clause Annex B [implimits] paragraph 2 seems to say otherwise:

... However, these quantities are only guidelines and do not determine compliance.

If it is indeed intentional that the actual quantitative limits are just guidelines, then the normative (conformance-related) content is limited to Clause Annex B [implimits] paragraph 1, which establishes documentation requirements only:

Because computers are finite, C++ implementations are inevitably limited in the size of the programs they can successfully process. Every implementation shall document those limitations where known. This documentation may cite fixed limits where they exist, say how to compute variable limits as a function of available resources, or say that fixed limits do not exist or are unknown.

However, those general documentation requirements are best expressed in 4.1.1 [intro.compliance.general], leaving Clause Annex B [implimits] with just an informative list of minimum suggested quantities.

Possible resolution [SUPERSEDED]:

  1. Change in 4.1.1 [intro.compliance.general] bullet 2.1 as follows:

    If a program contains no violations of the rules in Clause 5 through Clause 33 and Annex D, a conforming implementation shall, within its resource limits as described in Annex B (see below), accept and correctly execute that program.
  2. Insert a new paragraph before 4.1.1 [intro.compliance.general] paragraph 8 as follows:

    An implementation shall document its limitations in the size of the programs it can successfully process, where known. This documentation may cite fixed limits where they exist, say how to compute variable limits as a function of available resources, or say that fixed limits do not exist or are unknown. Clause Annex B [implimits] lists some quantities that can be subject to limitations, and recommends a minimum value for each quantity.

    A conforming implementation may have extensions (including additional library functions), ...

  3. Change in Clause Annex B [implimits] paragraph 1 and paragraph 2 as follows:

    Annex B
    (normativeinformative)

    Because computers are finite, C++ implementations are inevitably limited in the size of the programs they can successfully process. Every implementation shall document those limitations where known. This documentation may cite fixed limits where they exist, say how to compute variable limits as a function of available resources, or say that fixed limits do not exist or are unknown.

    The limits may constrain quantities that include those described below or others. Implementations can exhibit limitations, among others for the quantities in the following list. The bracketed number following each quantity is recommended as the minimum value for that quantity. However, these quantities are only guidelines and do not determine compliance.

History
Date User Action Args
2024-07-20 13:52:34adminsetstatus: ready -> dr
2024-06-26 21:21:27adminsetstatus: tentatively ready -> ready
2024-05-31 21:07:31adminsetmessages: + msg7721
2024-05-31 21:07:31adminsetstatus: review -> tentatively ready
2024-05-17 22:24:28adminsetmessages: + msg7704
2024-05-17 22:24:28adminsetstatus: open -> review
2024-05-17 00:00:00admincreate