On 10/26/2011 10:30 PM, Paolo Carlini wrote:
Hi,
At a glance, it looks too early; it's valid to have namespace-qualified names after ->.

namespace A
{
  struct B
  {
    int i;
  };
};

A::B* b;
int i = b->A::B::i;
I was also trying to construct such kind of example myself... but my patch does not regress on the testcase you wrote down. I can tell you exactly why, if you like..
We have that parser->scope is a RECORD_TYPE and postfix_expression is an INDIRECT_REF.

Paolo.

Reply via email to