Nik:
As you know, the fix for removing a busted exhaust stack stub is to take the manifold off, heat the manifold and the stub and then bend in the stub to the ID with a big screwdriver and mallet.
Therefore, heating the manifold should not be a problem.. but I would hesitate welding the stack while still in the manifold. I probably would heat it up a bit, loosen the stack and removed it. Weld the stack on the bench, that way you can do a better job and see what you are doing without risking damage to the manifold, or the paint.. :roll: :wink: :lol: . then put some anit-seize on the threads and re-install the stack.
Remember, I ain't no whiz at welding and stuff.. but to my mind this is the safer, easier and probably better route..