| View previous topic :: View next topic |
| Author |
Message |
Tuan
Joined: 11 Jun 2009 Posts: 226
|
Posted: Thu Feb 11, 2010 10:03 am Post subject: bug - constant data cannot be declared in a host subprogram |
|
|
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?
| Code: | MODULE themodule
real, constant :: var1 ! this is okay
CONTAINS
subroutine dosomething()
real, constant :: var2 ! this is error
end subroutine dosomething
END MODULE
|
Tuan |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Thu Feb 11, 2010 5:52 pm Post subject: |
|
|
Hi Tuan,
Most likely, but I'll let our engineers investigate. I saw that you had sent this to PGI Customer Service as well and that they have opened TPR#16605.
Thanks,
Mat |
|
| Back to top |
|
 |
Tuan
Joined: 11 Jun 2009 Posts: 226
|
Posted: Thu Feb 11, 2010 6:02 pm Post subject: |
|
|
| mkcolg wrote: | Hi Tuan,
Most likely, but I'll let our engineers investigate. I saw that you had sent this to PGI Customer Service as well and that they have opened TPR#16605.
Thanks,
Mat |
Thanks Mat. Sorry for duplicating. I didn't received any feedback from PGI Customer service, so I thought I can reach you faster via the forum.
Tuan. |
|
| Back to top |
|
 |
|