I've tried to replicate your problem, but both procedures compiled without any problems.

what version of Oracle do you have?