[cfe-commits] Note and FixIt for additional case of vexing parse

Nikola Smiljanic popizdeh at gmail.com
Thu Jul 19 04:52:58 PDT 2012


I'm almost done, but some tests are failing because the call to
D.isFunctionDeclarator() is not in the outside 'if'. It doesn't filter out
pointers to member functions, functions with no parameters and a reference
return type (these can't be variable declarations), the last one I don't
even understand.

struct S {
    int n;
};

void test() {

 S &foor();

 int (S::*memberFunction)();

 int a;
 S(a)()->n;
 auto(a)()->n;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120719/837cb4d0/attachment.html>


More information about the cfe-commits mailing list