Will temp variable in always_comb create latch
If within the always_comb block your assignment comes before any read access, there is no latch. You should get an error if there is any possible flow through the block if there was a read before any write to a local variable.