Compilation fails with a simple code

Yes, it worked fine with your suggestion.

Thanks !