Title
Right-recursion in mem-initializer-list
Status
cd4
Section
11.9.3 [class.base.init]
Submitter
Christof Meerwald

Created on 2013-09-16.00:00:00 last changed 94 months ago

Messages

Date: 2014-11-15.00:00:00

[Moved to DR at the November, 2014 meeting.]

Date: 2014-02-15.00:00:00

Proposed resolution (February, 2014):

Change the grammar in 11.9.3 [class.base.init] paragraph 1 as follows:

    mem-initializer-list:
      mem-initializer ...opt
      mem-initializer-list , mem-initializer ...opt , mem-initializer-list
Date: 2013-09-16.00:00:00

The grammar for mem-initializer-list in 11.9.3 [class.base.init] paragraph 1 (after the resolution of issue 1649) is right-recursive:

    mem-initializer-list:
      mem-initializer ...opt
      mem-initializer ...opt , mem-initializer-list

In general, however, such lists elsewhere in the Standard are described using a left-recursive grammar, e.g., for initializer-list in 9.4 [dcl.init] paragraph 1:

    initializer-list:
      initializer-clause ...opt
      initializer-list , initializer-clause ...opt

It would be better to be consistent in the definition of mem-initializer-list.

History
Date User Action Args
2017-02-06 00:00:00adminsetstatus: drwp -> cd4
2015-05-25 00:00:00adminsetstatus: dr -> drwp
2015-04-13 00:00:00adminsetmessages: + msg5399
2014-11-24 00:00:00adminsetstatus: ready -> dr
2014-03-03 00:00:00adminsetmessages: + msg4839
2014-03-03 00:00:00adminsetstatus: open -> ready
2013-09-16 00:00:00admincreate