Pointer to members in the class declaration is a legit expression and should be allowed. It's MSVC bug which was fixed as part of 17.11 VS release (MSVC 19.41).