Topic: Nested name specifiers


Author: lesueur@desargues.univ-lyon1.fr (Emmanuel Lesueur)
Date: 1997/01/31
Raw View
Consider the following code:

struct A {
};

struct C {
};

A ::C::* x;

Should a compiler try to parse A::C:: as a nested name specifier
and give an error, or should it accept it as a declaration
of x as a pointer to member of class ::C of type A ?

___________
lesueur@desargues.univ-lyon1.fr
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]