- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can compile successfully the program below! Please explain, why putting two directives concerning default "kind" makes it compile with no error?
Thank you.
program test
cDEC$ integer:8
cDEC$ real:8
cDEC$ real:8
implicit none
real*8, dimension(1:10) :: myArray
myArray(11) = dble(0.0d0)
stop
end program test
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Now, that is an interesting question. I can see that if I compile this source with /check:bounds that I get a compile-time warning about the bounds reference only if the directives are absent. I can't think of why this is and will ask the developers.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page