The first example is correct. I don’t think the second would work with standard Fortran as far as I understand. Is there a new standard or extension we should be aware of?
I’m not sure if this is the standard or just an extension, yet it provide a convenient way of using a preferred name for the data type. This is the website