Skip to content

[basic.start.term]/1 "sequenced before" followed by "function" #9280

Open

Description

@BlowingWind314

[basic.start.term]/1 says

Constructed complete objects ([dcl.init]) with static storage duration are destroyed and functions registered with std​::​atexit are called as part of a call to std​::​exit ([support.start.term]). The call to std​::​exit is sequenced before the destructions and the registered functions.

Clearly "sequenced before registered functions" makes no sense. It shall be "sequenced before calls".

Also be careful to say calls caused by std::exit rather than arbitrary calls.

Activity

  1. jensmaurer commented on Aug 30, 2026

    @jensmaurer
    Member

    I'd like to replace all "call"s with "invoked" here, too.

    Otherwise agreed; patch welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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