This Code Will not give any error at compile time.
But at the time of running this code sum() will called recursively and a never ending process until unless you did not stop the execution...