Skip to content

[intro.abstract] It is unclear where erroneous behavior diagnostics are issued #688

Closed as not planned
@Eisenwave

Description

@Eisenwave

Prior discussion at: cplusplus/draft#7730 (comment)

Reference (section label): [intro.abstract] paragraph 6

Issue description

In [assertions.assert], we say that a diagnostic is created "on the standard error stream". One would expect diagnostics emitted as part of erroneous behavior to follow this precedent, but the Recommended practice in [intro.abstract] paragraph 6 does not state where the diagnostic is emitted.

Furthermore, erroneous behavior can occur within a freestanding implementation, but such an implementation may not be capable of producing diagnostics during execution, so the recommendation should not apply to it.

Suggested resolution

Change [intro.abstract] paragraph 6 as follows:

Recommended practice: An A hosted implementation should issue a diagnostic on the standard error stream when such an operation is executed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions