A child born of voidable marriage or a bigamous marriage is legitimate notwithstanding the annulment of the marriage. (1951, c. 893, s. 2.)