C++ Logo


Advanced search

Re: Ambiguities of the C++ Standard definitions.

From: Daniel Krügler <daniel.kruegler_at_[hidden]>
Date: Wed, 7 Dec 2022 18:12:29 +0100
Am Mi., 7. Dez. 2022 um 18:00 Uhr schrieb Vladimir Grigoriev
> Well, consider another phrase from the C++ Standard
> «2 In a function-definition, either void declarator ; or declarator ; shall be a well-formed function declaration ...»
> What is the «void declarator»? I have not found the definition of this term. It seems these word combination is encountered only once in the C++ Standard.

This question cannot be answered without keeping in mind that the
Standard working draft uses not only plain text letters, but also text
formatting. What you are quoting here must be quoted including the
formatting to understand its meaning. The whole sentence is in
markdown syntax formatted like this:

"In a *function-definition*, either `void *declarator* ;` or
`*declarator* ;` shall be a well-formed function declaration as [..]"

Both *function-definition* and *declarator* are parts of the grammar,
see Annex A,

All the best,

- Daniel

Received on 2022-12-07 17:12:42