A rotating electric machine, comprising: a shaft; a rotator fixed to the shaft; bearings provided to the shaft on both sides of the rotator so as to be rotatable, for rotatably supporting the rotator; and a bracket including a bearing housing portion, into which one of the bearings is press-fitted through a clearance filling member therebetween, wherein: the clearance filling member has a cylindrical shape with a thickness in a radial direction of the clearance filling member smaller than a clearance between an outer circumferential wall surface of an outer ring of the bearing and an inner circumferential wall surface of the bearing housing portion; the clearance filling member comprises: a convex portion (33, 33A) formed on an outer circumferential surface of the clearance filling member so as to extend in an axial direction of the clearance filling member to be brought into pressure-contact with the inner circumferential wall surface of the bearing housing portion; and a concave portion formed on an inner circumferential surface of the clearance filling member so as to be opposed to the convex portion (33, 33A), for allowing displacement of the convex portion (33, 33A) in a radially inward direction of the clearance filling member; and the clearance filling member is integrated with the bearing housing portion by an elastic force generated by the displacement of the convex portion (33, 33A), characterized in that the clearance filling member comprises at least one flat portion having a flat inner circumferential surface, for pressing the outer ring. a shaft; a rotator fixed to the shaft; bearings provided to the shaft on both sides of the rotator so as to be rotatable, for rotatably supporting the rotator; and a bracket including a bearing housing portion, into which one of the bearings is press-fitted through a clearance filling member therebetween, wherein: the clearance filling member has a cylindrical shape with a thickness in a radial direction of the clearance filling member smaller than a clearance between an outer circumferential wall surface of an outer ring of the bearing and an inner circumferential wall surface of the bearing housing portion; the clearance filling member comprises: a convex portion (33, 33A) formed on an outer circumferential surface of the clearance filling member so as to extend in an axial direction of the clearance filling member to be brought into pressure-contact with the inner circumferential wall surface of the bearing housing portion; and a concave portion formed on an inner circumferential surface of the clearance filling member so as to be opposed to the convex portion (33, 33A), for allowing displacement of the convex portion (33, 33A) in a radially inward direction of the clearance filling member; and the clearance filling member is integrated with the bearing housing portion by an elastic force generated by the displacement of the convex portion (33, 33A), characterized in that the clearance filling member comprises at least one flat portion having a flat inner circumferential surface, for pressing the outer ring. the clearance filling member has a cylindrical shape with a thickness in a radial direction of the clearance filling member smaller than a clearance between an outer circumferential wall surface of an outer ring of the bearing and an inner circumferential wall surface of the bearing housing portion; the clearance filling member comprises: a convex portion (33, 33A) formed on an outer circumferential surface of the clearance filling member so as to extend in an axial direction of the clearance filling member to be brought into pressure-contact with the inner circumferential wall surface of the bearing housing portion; and a concave portion formed on an inner circumferential surface of the clearance filling member so as to be opposed to the convex portion (33, 33A), for allowing displacement of the convex portion (33, 33A) in a radially inward direction of the clearance filling member; and a convex portion (33, 33A) formed on an outer circumferential surface of the clearance filling member so as to extend in an axial direction of the clearance filling member to be brought into pressure-contact with the inner circumferential wall surface of the bearing housing portion; and a concave portion formed on an inner circumferential surface of the clearance filling member so as to be opposed to the convex portion (33, 33A), for allowing displacement of the convex portion (33, 33A) in a radially inward direction of the clearance filling member; and the clearance filling member is integrated with the bearing housing portion by an elastic force generated by the displacement of the convex portion (33, 33A), characterized in that the clearance filling member comprises at least one flat portion having a flat inner circumferential surface, for pressing the outer ring.