I agree with Rouge Physicist, and have come across this problem before.
An interesting example to consider is an L shaped bar. Under the center of mass "theorum", an object would be attracted to a point outside the bar, but of course, this is not what really happens. To actually calculate...