Re: bug with ifort + openmp : allocatable array not allocated after allocation



On Fri, 4 Jul 2008 12:18:23 -0700 (PDT), Domel <domel07@xxxxxxxxx> wrote:

The following code should allocate an allocatable shared array inside
the parallel construct using SINGLE clause. It generates a run time
error with ifort 10.1:

forrtl: severe (408): fort: (8): Attempt to fetch from allocatable
variable USEDD when it is not allocated

I can reproduce this bug - it happens only if you ask for the optional
"pointer checking" feature (-check pointer, implicit in -C) as well as OpenMP.
The array actually is allocated but the code that is triggered by the pointer
checking feature is evidently looking in the wrong place. We'll fix it.

The workaround is to not use the -check pointer feature.
--
Steve Lionel
Developer Products Division
Intel Corporation
Nashua, NH

For email address, replace "invalid" with "com"

User communities for Intel Software Development Products
http://softwareforums.intel.com/
Intel Fortran Support
http://support.intel.com/support/performancetools/fortran
My Fortran blog
http://www.intel.com/software/drfortran
.



Relevant Pages

  • Re: right sequence of included module files
    ... Then I find some of the .f90 are main programs. ... Developer Products Division ... User communities for Intel Software Development Products ... Intel Fortran Support ...
    (comp.lang.fortran)
  • Re: unresolved external symbol
    ... I get the mistake unresolved external symbol -LNK2001 when building a ... Developer Products Division ... User communities for Intel Software Development Products ... Intel Fortran Support ...
    (comp.lang.fortran)
  • Re: TYPE declaration/statement in Fortran 77 code
    ... seen where TYPE is an I/O statement, it is interchangeable with "PRINT" and still requires a format specifier. ... Developer Products Division ... User communities for Intel Software Development Products ... Intel Fortran Support ...
    (comp.lang.fortran)
  • Re: sort the variables shown in variable window in debugger
    ... on the order in which things were written to the debug symbol table, ... Developer Products Division ... User communities for Intel Software Development Products ... Intel Fortran Support ...
    (comp.lang.fortran)
  • Re: [Q] FORMAT
    ... Steve Lionel ... Software Products Division ... User communities for Intel Software Development Products ... Intel Fortran Support ...
    (comp.lang.fortran)