Skip to content

[intro.abstract] p6 A program may not have an observable behavior #939

Description

@xmh0511

Full name of submitter (unless configured in github; will be published with the issue): Jim X

[intro.abstract] p6 says:

A conforming implementation executing a well-formed program shall produce the observable behavior of the defined prefix of one of the possible executions of the corresponding instance of the abstract machine with the same program and the same input.

The emphasized wording sounds like it asserts that every possible execution does have observable behavior; however, this is not true. For example:

int main(){}

This is a well-formed program; however, any possible execution of the program doesn't have any observable behavior defined in [intro.abstract] p8. A real implementation plausibly does nothing for the program, which is reasonable to be considered as a conforming implementation.

Suggested Resolution:

A conforming implementation executing a well-formed program shall produces the observable behavior, if any, of the defined prefix of one of the possible executions of the corresponding instance of the abstract machine with the same program and the same input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions