Skip to content

[basic.stc.auto] Limit on the number of variables with automatic storage duration #701

Open
@cor3ntin

Description

@cor3ntin

Issue description:

The standard does not talk about stack. But we should still admit that tape is usually finite.
There was a desire from SG1 to create such an issue (see Wg21kona2022/P2019KONA)

It's unclear how much we want to say, for example, if we want to formulate a note about stack size. But we should say something

(minimalist) Suggested resolution:

Add a new paragraph at the end of [basic.stc.auto]

If the number of variables with automatic storage duration in a block scope exceeds an implementation-defined limit, the behavior of the program is undefined.

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