This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 114a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-04-18


2188. empty-declaration grammar ambiguity

Section: 11.4.1  [class.mem.general]     Status: open     Submitter: Jens Maurer     Date: 2015-10-21

(The originally reported ambiguity between simple-declaration and empty-declaration does not seem to exist.)

There is a grammar ambiguity between

  empty-declaration:
     ;

and

  member-declaration :
      attribute-specifier-seqopt decl-specifier-seqopt member-declarator-listopt ;
      ...
      empty-declaration