Dimensional-reduction anomaly