- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
The following code is compiled with ifort 11.1.065 using the /check:bounds option:
REAL*4 D_DIST(2,2)
i = 21
D_DIST(i,1) = 0.0
When running in VS 2008, with allexceptions turned on,in debug mode no exception is generated.
Funny thing is that a run-time error will occur when compiled/run with ifort 10.1.013/VS 2005.
Any clues as to why the difference in behavior?
Thanks
Steph
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is that the complete program, other than the missing END? What is the full set of compilation options used? I get the proper error when I try it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I get an error when I step through the code. I see you enclosed a build.bat file, but it does not enable bounds checking. If I build and run your project, I get the error, either running or stepping.
forrtl: severe (408): fort: (2): Subscript #1 of the array D_DIST has value 21 which is greater than the upper bound of 2
Image PC Routine Line Source
CopyFolder.exe 004A0EBA Unknown Unknown Unknown
CopyFolder.exe 0049E198 Unknown Unknown Unknown
CopyFolder.exe 00404940 Unknown Unknown Unknown
CopyFolder.exe 00404F61 Unknown Unknown Unknown
CopyFolder.exe 00401122 _MAIN__ 41 CopyFolder.f90
CopyFolder.exe 004A7873 Unknown Unknown Unknown
CopyFolder.exe 0044CA67 Unknown Unknown Unknown
CopyFolder.exe 0044C93F Unknown Unknown Unknown
kernel32.dll 7C817077 Unknown Unknown Unknown
forrtl: severe (408): fort: (2): Subscript #1 of the array D_DIST has value 21 which is greater than the upper bound of 2
Image PC Routine Line Source
CopyFolder.exe 004A0EBA Unknown Unknown Unknown
CopyFolder.exe 0049E198 Unknown Unknown Unknown
CopyFolder.exe 00404940 Unknown Unknown Unknown
CopyFolder.exe 00404F61 Unknown Unknown Unknown
CopyFolder.exe 00401122 _MAIN__ 41 CopyFolder.f90
CopyFolder.exe 004A7873 Unknown Unknown Unknown
CopyFolder.exe 0044CA67 Unknown Unknown Unknown
CopyFolder.exe 0044C93F Unknown Unknown Unknown
kernel32.dll 7C817077 Unknown Unknown Unknown

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