C++ Logo

std-discussion

Advanced search

Re: When is an expression not an expression?

From: language.lawyer_at <language.lawyer_at_[hidden]>
Date: Sun, 22 Sep 2019 23:23:10 +0300
On 22/09/2019 20:04, Andrew Schepler via Std-Discussion wrote:
> For a possible fix, maybe rename the non-terminal grammar symbols to
> "general-expression" and "general-declaration". Then define "expression" to
> mean an instance of any grammar symbol with symbol name ending in
> "-expression", or actually list all of them (about 25?). And define
> "declaration" to be a general-declaration, member-declaration,
> declaration-statement, parameter-declaration, or exception-declaration.
> Except for these two definitions, and in actual grammar rules, almost all
> instances of the words "expression" and "declaration" should no longer be
> in italics.

http://wg21.link/p1787 is a fix for declaration issues.

Received on 2019-09-22 15:25:22