Add missing "non-constant" diagnostic for a member call on a temporary of
non-literal class type.