https://github.com/zwuis commented:

Could you please add tests with reference to function?

---

> > ```cpp
> > struct S {};
> > 
> > // Do not diagnose: required member-pointer parens.
> > int (S::*memberPtr);
> > 
> > // Do not diagnose: required member-function-pointer parens.
> > void (S::*memberFunctionPtr)(int);
> > ```
> 
> `int S::*ptr;` and `int S::*ptr(int);` are valid. We should diagnose.
> 
> ...

I just realise that I'm wrong on the pointer to member function case.

https://github.com/llvm/llvm-project/pull/196739
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to