Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29062 Discussions

ICE on ALLOCATE with undeclared components

joseph_battelle
Beginner
688 Views
Allocating an undeclared type/component turns into an internal compiler error with the current compiler. Steve, what is the difference between an "internal compiler error" and a fatal, "catastrophic" error (as reported previously)? For invalid code such as this, do you want defect reports on internal compiler errors? The catastrophic error is accompanied by a message to report the defect. Plain-old "internal compiler errors" are not.

[fortran]module m7
contains
    function pair_ci
        !allocate(a, source = c) !warning about no explicit type as your would expect           
        allocate(a % x, source = c) !reasonable errors then: fortcom: Fatal: There has been an internal compiler error (C0000005).           
    end function pair_ci
end module m7[/fortran]

0 Kudos
1 Solution
Steven_L_Intel1
Employee
688 Views
Issue ID is DPD200157390.

View solution in original post

0 Kudos
3 Replies
Steven_L_Intel1
Employee
688 Views
"Internal compiler error" is usually when the compiler detects a problem using a code test. The "catastrophic" error is usually an exception such as an access violation, as in your case, that got trapped by a signal handler.

We always want such reports - the compiler should never just die on an invalid program. Thanks.
0 Kudos
Steven_L_Intel1
Employee
689 Views
Issue ID is DPD200157390.
0 Kudos
Steven_L_Intel1
Employee
688 Views
This was fixed in Composer XE 2011 Update 6.
0 Kudos
Reply