[clang] [clang] pointer to member with qualified-id enclosed in parentheses in unevaluated context should be invalid (PR #89713)

Brian Bi via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 25 05:38:28 PDT 2024


t3nsor wrote:

> @t3nsor Do you know the reason for the "not enclosed in parameters" in https://eel.is/c++draft/expr.unary.op#4 ?

No I don't. If I had to guess, it might be because adding parentheses is intended to be used as a way to not create a pointer to member (and instead get an ordinary pointer to a member named by a qualified  name) sort of like how parentheses can be used to suppress ADL.

https://github.com/llvm/llvm-project/pull/89713


More information about the cfe-commits mailing list