Shear–flexion cross-talk in weak-lensing measurements