Skip to content

[dcl.init] should this 'declarator' be the 'initializer'8 #1615

Closed
@Heuristack

Description

@Heuristack

Hi, I got confused when reading [dcl.init]

A declarator can specify an initial value for the identifier being declared.

Should it be like

An initializer can specify an initial value for the identifier being declared.

Noticed that the BNF reflecting the relationship between a declarator and an initializer,

\begin{bnf}
\nontermdef{init-declarator}\br
    declarator initializer\opt
\end{bnf}

FYI, @sdutoit, thanks!

Metadata

Metadata

Assignees

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