It is expected to have only members declared prior to the function declaration. As seen in §5.1.1 bullet 3 of the standard :
If a declaration declares a member function … [ Note: only class members declared prior to the declaration are visible. —end note ]