In the grammar of C++ Specification, the members of a class is defined as this:
member-declaration:
decl-specifier-seq(optional) member-declarator-list(optional);
function-definition ;(optional)
::(optional) nested-name-specifier template(optional) unqualified-id ;//what is this?
using-declaration
template-declaration
...
I understand 4 of them. But the 3rd one defines a mandatory nested name specifier followed by an id. e.g
class {
X::Y::z;
}
I don't aware of any C++ syntax that matches this definition. Did I miss something?