It has already been explained that the sages established a gift of a shekhiv mera like an inheritance. Therefore, a convert who has a son whose conception was not in sanctity, just as he does not inherit him, as I wrote in siman 283, so too he cannot give him assets as a gift of a shekhiv mera, neither all of them nor part of them, if he gives them as an explicit gift of a shekhiv mera or as a command due to death; for inheritance and a gift of a shekhiv mera have the same law. And if we were to say that he acquires through a gift of a shekhiv mera, they would also say that he is fit to inherit him. And if he gave to another, not to his son, even to another convert, his gift is valid; and they only decreed regarding his son specifically, so that no ruin regarding forbidden relations should result from this if he were considered like his son. This is the opinion of the Rambam in the ninth chapter of Zekhiya. However, many of our teachers hold that there is no distinction between a son and another, for he cannot give to any person as a gift of a shekhiv mera, because in a gift of a shekhiv mera the acquisition is after death, and there is no acquisition after death except that the sages established it like an inheritance. Therefore, this one who is not subject to inheritance such that others should inherit him—for he is considered like a newborn child—does not have the power to give as a gift of a shekhiv mera, and he must give as a gift of a healthy person with a kinyan or by way of admission. And if not, his assets remain ownerless after his death, and whoever acquires from the ownerless property acquires it. Our teacher, the Rema, decided in favor of this opinion. Therefore, some say that if he has one son whose conception was in sanctity and who inherits him, he can give even to his son whose conception was not in sanctity as a gift of a shekhiv mera; since he has someone who inherits him, and even though the recipient is not subject to inheritance, we follow the giver [Tosafot Bava Batra 149a].
כבר נתבאר דמתנת שכ"מ כירושה שויוה רבנן לפיכך גר שיש לו בן שאין הורתו בקדושה כשם שאינו יורשו כמ"ש בסימן רפ"ג כמו כן אינו יכול ליתן לו נכסים במתנת שכ"מ לא כולן ולא מקצתן אם נותנן במתנת שכ"מ מפורש או במצוה מחמת מיתה דירושה ומתנת שכ"מ דין אחד להם ואם נאמר שיקנה במתנת שכ"מ יאמרו ג"כ שראוי ליורשו ואם נתן לאחר לא לבנו אפילו לגר אחר מתנתו קיימת ולא גזרו רק בבנו בלבד כדי שלא יצא מזה קלקול בעריות אם יחשב כבנו וזהו דעת הרמב"ם בפ"ט מזכיה אבל הרבה מרבותינו ס"ל שאין חילוק בין בן לאחר דאינו יכול ליתן לשום אדם במתנת שכ"מ משום דמתנת שכ"מ הקנין הוא לאחר מיתה ואין קנין לאחר מיתה אלא דשויוה רבנן כירושה ולכן זה שאינו בר ירושה שיירשו אותו דכקטן שנולד דמי אין בכחו ליתן במתנת שכ"מ וצריך ליתן במתנת בריא בקנין או דרך הודאה ואם לאו נשארו נכסיו הפקר לאחר מותו ומי שזוכה מן ההפקר זוכה והכריע רבינו הרמ"א כדעה זו ולכן י"א שאם יש לו בן אחד שהורתו בקדושה ויורש אותו יכול ליתן אפילו לבנו שלא היתה הורתו בקדושה במתנת שכ"מ כיון שיש לו מי שיורש אותו ואף על גב דהמקבל אינו בר ירושה אזלינן אחר הנותן [תוס' ב"ב קמ"ט.]: