This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 114a. See for the official list.


1801. Kind of expression referring to member of anonymous union

Section: 11.5  [class.union]     Status: CD4     Submitter: David Majnemer     Date: 2013-10-24
[Adopted at the November, 2014 meeting as part of paper N4268.]

It is not clear whether naming a member of a global anonymous union should be considered an id-expression or implicitly a member access expression. For example, given

  static union {
    int i;

  template <int &> struct S {};
  S<i> V;

is the last line well-formed? There is implementation variance on this question.

Notes from the February, 2014 meeting:

CWG agreed that the example should be ill-formed.