This is the wording of our teacher, the Beit Yosef, in section 3: "Behold, this is your get from now if I do not come from now until twelve months, and he died within twelve months, behold she is divorced; but if she has a yavam, she shall not marry without chalitzah until twelve months pass, and if she married, she shall not leave." Thus far his words. And it implies that according to all the poskim, if she married she shall not leave, even according to the opinion of the Rambam that it is a complete prohibition as has been written. And there is one who says that according to the Rambam, if she married she shall leave (Beit Shmuel, subsection 5), and all the more so according to the one who holds that the doubt is perhaps he did not intend to divorce her except after twelve months, for it did not enter his mind that he would die (Ran, end of chapter 7). And it appears to me that according to the Rambam, it is certainly impossible to say so, for behold he holds at the beginning of chapter 8 that even with a condition of "if you give me two hundred zuz" without "from now," also if she married she shall not leave, and we explained his reasoning in the previous siman, section 10, see there; and all the more so with "from now" regarding "if I do not come after twelve months" that she shall not leave. And it is true that in section 17 there we explained that with this condition, if she married she shall leave without "from now," and we distinguished between a condition that is upon her to perform and a condition that is upon him, see there; nevertheless, since he is lenient regarding a condition upon her even without "from now," all the more so regarding a condition upon him with "from now." And also the one who holds the reason that he did not intend to divorce her except after twelve months, it is also impossible to say it according to its plain meaning, for behold he said "from now"; rather, this is the explanation: that perhaps his intention was that at the conclusion of twelve months she shall be divorced from now, and certainly so it is. Therefore, she should not marry ab initio even when the condition certainly will not be fulfilled, because such was his intent. But in any case, why was his intent so? Because it did not enter his mind that he would die, as has been written. And it is understood automatically that if it had entered his mind that he would die, he would have divorced her immediately, for behold his intention was not to provoke her or cause her pain, and ultimately his entire intention was because of the fulfillment of the condition. And since it is so, automatically when he died and it is impossible for the condition to be fulfilled, granted that we do not permit her ab initio, nevertheless why should she leave if she married? Behold, we know clearly that he will not come, and ultimately she will be divorced retroactively. And nevertheless, in practice it is possible that one should be stringent, and the law requires further study. And nevertheless, since according to the Tosafot, the Rosh, and the Tur it is obvious that she shall not leave, one may rely on them so as not to remove a woman from her husband, and what is more, even according to the opinions that were explained, it also appears so (for his intent is only a disclosure of mind and is nothing).
וז"ל רבינו הב"י בסעיף ג' ה"ז גיטך מעכשיו אם לא באתי מכאן ועד י"ב חודש ומת תוך י"ב חודש ה"ז מגורשת אבל אם יש לה יבם לא תנשא בלא חליצה עד שיעברו י"ב חדש ואם נשאת לא תצא עכ"ל ומשמע דלכל הפוסקים אם נשאת לא תצא אפילו לדעת הרמב"ם דאיסור גמור הוא כמ"ש ויש מי שאומר דלהרמב"ם אם נשאת תצא (ב"ש סק"ה) וכ"ש למי שסובר דהספק הוא שמא לא כיון לגרשה אלא לאחר י"ב חדש דהוא לא אסיק אדעתיה שימות (ר"ן ספ"ז) ולי נראה דלהרמב"ם וודאי דא"א לומר כן דהא איהו ס"ל בריש פ"ח דאפילו בתנאי דאם תתן לי מאתים זוז בלא מעכשיו ג"כ אם נשאת לא תצא ובארנו טעמו בסי' הקודם סעיף י' ע"ש וכ"ש במעכשיו אם לא אבא לאחר י"ב חדש דלא תצא והן אמת שבסעיף י"ז שם בארנו דבתנאי זה אם נשאת תצא בלא מעכשיו וחלקנו בין תנאי שעליה לעשות לתנאי שעליו ע"ש מ"מ כיון שמיקל בתנאי שעליה גם בלא מעכשיו כ"ש בתנאי שעליו במעכשיו וגם מי שסובר הטעם שלא כיון לגרשה רק לאחר י"ב חדש ג"כ א"א לומר כפשוטו דהא מעכשיו קאמר אלא דה"פ שאולי היתה כוונתו דבכלות י"ב חדש תתגרש מעכשיו ובוודאי כן הוא ולכן אין לה לכתחלה להנשא אף כשבוודאי לא יתקיים התנאי מפני שכן היה דעתו אבל עכ"פ מפני מה היה דעתו כן מפני שלא אסיק אדעתיה שימות כמ"ש וממילא מובן דאי אסיק אדעתיה שימות היה מגרשה מיד דהא לא היה כוונתו להקניטה ולצערה וסוף סוף הכל היה כוונתו מפני קיום התנאי וכיון שכן ממילא כשמת וא"א שיתקיים התנאי נהי דלא שרינן לה לכתחלה מ"מ למה תצא אם נשאת הא אנן ידעינן ברור שלא יבא וסוף סוף תתגרש למפרע ומ"מ למעשה אפשר שיש להחמיר וצ"ע לדינא ומ"מ כיון דלהתוס' והרא"ש והטור פשיטא שלא תצא יש לסמוך עליהם כדי שלא להוציא אשה מבעלה ומה גם דאפילו לדעות שנתבארו ג"כ נראה כן (דדעתו הוא רק גילוי דעתא ואינו כלום):