The documents written that constant data can be used in declaration statements.
However, I only be able to define it in the module’s area before the CONTAINS statement. Is this the bug?
MODULE themodule real, constant :: var1 ! this is okay CONTAINS subroutine dosomething() real, constant :: var2 ! this is error end subroutine dosomething END MODULE