Using module variables as dimensions in function arguments

What is the value of nx when not initialized ?

Edit: this code runs fine even when uncommenting the first call, with either gfortran or ifort. In both cases nx is zero before being initialized