- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Several of my programs subdivide blank common into real*8, real*4, and integer*4 arrays. The RELEASE compiler runs the programs fine. The DEBUG compiler compiles, but then hits an execution error when it runs because the first m subscript exceeds m(1). These are the lines after declaring common (900000).
real*8 d
real r
integer m
common d(1),r(1),m(1)
Common is then subdivided into arrays where the entry points are tracked based on word length. It works, except for DEBUG. Is there a work-around for this? Is it a compiler error?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is not a compiler error. The Debug configuration turns on array bounds checking. Your program deliberately accesses arrays out of bounds so you will have to disable that option under "Run time".

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