Skip to content

[dcl.constinit] p1 "Declaration of a variable" is broken wording #6523

@Eisenwave

Description

@Eisenwave

The constinit specifier shall be applied only to a declaration of a variable with static or thread storage duration.

- [dcl.constinit] p1

This is broken wording because [basic.pre] says:

A variable is introduced by the declaration of a reference other than a non-static data member or of an object.
The variable's name, if any, denotes the reference or object.

What the former paragraph says is thus:

The constinit specifier shall be applied only to a declaration of a declaration of an object or reference other than a non-static data member or of an object, with static or thread storage duration.

Inlining the definition gives us "declaration of a declaration" which is either meaningless or recursive.

Suggested Fix

Extend [basic.pre] p6 as follows:

 A *variable* is introduced by the declaration of a reference
 other than a non-static data member or of an object.
 The variable's name, if any, denotes the reference or object.
+Such a declaration is called *variable declaration*.

Then, in the entire document:

-declaration of a variable
+variable declaration

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy