וַיֹּ֤אמֶר יְהוָה֙ אֶל־מֹשֶׁ֔ה אֱמֹ֥ר אֶל־הַכֹּהֲנִ֖ים בְּנֵ֣י אַהֲרֹ֑ן וְאָמַרְתָּ֣ אֲלֵהֶ֔ם לְנֶ֥פֶשׁ לֹֽא־יִטַּמָּ֖א בְּעַמָּֽיו׃
און גאָט האָט געזאָגט צו משהן: רעד צו די כֹּהנים, די זין פֿון אַהרֹנען, און זאָלסט זאָגן צו זײ: קײנער זאָל זיך ניט פֿאַראומרײניקן אָן אַ טױטן צװישן זײַן פֿאָלק;
Gray Matter III
A few points need to be clarified before we begin our discussion. The Torah (Vayikra 21:1) forbids kohanim to come in contact with the dead. This restriction, however, applies only to male kohanim (Sotah 23b, cited by Rashi to Vayikra 21:1). Contact with the dead includes being in the same building as a dead body (Bemidbar 19:14). 2For a summary of whether this rule prohibits kohanim from entering hospitals, see Nishmat Avraham (2:209-210). For further discussion of this issue, see Techumin (19:323-334). Although children are not personally obligated to observe this restriction, adults cannot deliberately cause even the youngest of kohanim (even an infant) to come in contact with a dead body (Mishnah Berurah 343:3 and Aruch Hashulchan Y.D. 373:1).
Shulchan Arukh, Even HaEzer
A Cohen who comes to a possible prostitute (or a possible divorcee or a possible released woman - Tur), this is possible desecration and the offspring is a possible halal, and is given the restrictions of Cohanim and the restrictions of Israel. He may not eat Trumah and may not be exposed to a dead body, may only marry a woman permitted to a Cohen, and if he ate (trumah) or was exposed (to a dead body) or married a divorcee, they strike him with a stroke of rebellion. And this is the ruling regarding a halal of their words [i.e., rabbinic]. But the confirmed halal of Torah is like a Zar and may marry a divorcee and be exposed to the dead, as it is said "Say to the Cohanim the sons of Aaron" (Lev. 21:1) even though they are the sons of Aaron, not until they are serving as Cohanim.
Shulchan Arukh, Even HaEzer
A daughter of priests may be married to a hallal (the son of a priest through a forbidden relationship), or to a convert, or to an emancipated slave, women with fitting ancestry not having been warned against marrying those unfit for priesthood, as the verse says, "Sons of Aaron" (Lev 21:1) and not 'daughters of Aaron."