Using free-look as a gunner and then switching to commander/driver prevents the AI from turning the turret and it is unable to aim at anything.
Occurred with the Marshall and the Slammer.
Maybe it's a (normal) AI glitch where it just doesn't react at all. It did happen though and it seemed to be linked to using free-look as a gunner. {F22224}