<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Other case of ICE in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-compiler-error-Allocatable-with-Parameterized-Derived/m-p/1111908#M129331</link>
    <description>&lt;P&gt;Other case of ICE&lt;/P&gt;

&lt;P&gt;------ Build started: Project: ICEBug20170521, Configuration: Debug|Win32 ------&lt;/P&gt;

&lt;P&gt;Compiling with Intel(R) Visual Fortran Compiler 17.0.1.143 [IA-32]...&lt;BR /&gt;
	ICE2.f90&lt;BR /&gt;
	E:\20160922\Program\ICEBug20170521\ICEBug20170521\ICE2.f90(1): catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report. &amp;nbsp;Note: File and line given may not be explicit cause of this error.&lt;BR /&gt;
	compilation aborted for E:\20160922\Program\ICEBug20170521\ICEBug20170521\ICE2.f90 (code 1)&lt;/P&gt;

&lt;P&gt;Build log written to &amp;nbsp;"file://E:\20160922\Program\ICEBug20170521\ICEBug20170521\Debug\BuildLog.htm"&lt;BR /&gt;
	ICEBug20170521 - 1 error(s), 0 warning(s)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;Module ModuleDiagnosticsMomentum
    Implicit none
        Type ParticleMomentumOne(Nx)
                        Integer(4),Len :: Nx=NxMax
                        Integer(4) :: Timer=0
                        Real(8) ::  RhoOne(1:Nx),ChiOne(1:Nx)
                        Real(8) ::  JxOne(1:Nx),JyOne(1:Nx),JzOne(1:Nx)
                        Real(8) ::  TOne(1:Nx)
        EndType ParticleMomentumOne
        
      Type DiagnosticsControlFlow
           Integer(4) :: DiagnosticsModel=1
           Real(8)  :: Nx=1,Ny=1,Ns=1
           Real(8)  :: Dx,Dt
           Integer(4) :: StepStart=1,StepEnd=1,NDiagStep=0
           Integer(4) :: NDiagTotal=1,NDiagInterval=1
     End Type DiagnosticsControlFlow

        Type(ParticleMomentumOne(Nx=:)),Allocatable :: PMOOne,PMOSum

        
    Contains
         
        Subroutine  DiagParticleFieldPeriodInitialization(DCF)
          Implicit none
          Type(DiagnosticsControlFlow),intent(in) :: DCF
          Allocate(ParticleMomentumOne(Nx=DCF%Nx) :: PMOOne)
        End Subroutine  DiagParticleFieldPeriodInitialization   
End Module ModuleDiagnosticsMomentum&lt;/PRE&gt;

&lt;P&gt;But It compiles with a small mocification:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;Module ModuleDiagnosticsMomentum
    Implicit none
        Type ParticleMomentumOne(Nx)
                        Integer(4),Len :: Nx=NxMax
                        Integer(4) :: Timer=0
                        Real(8) ::  RhoOne(1:Nx),ChiOne(1:Nx)
                        Real(8) ::  JxOne(1:Nx),JyOne(1:Nx),JzOne(1:Nx)
                        Real(8) ::  TOne(1:Nx)
        EndType ParticleMomentumOne
        
      Type DiagnosticsControlFlow
           Integer(4) :: DiagnosticsModel=1
           Real(8)  :: Nx=1,Ny=1,Ns=1
           Real(8)  :: Dx,Dt
           Integer(4) :: StepStart=1,StepEnd=1,NDiagStep=0
           Integer(4) :: NDiagTotal=1,NDiagInterval=1
     End Type DiagnosticsControlFlow

        Type(ParticleMomentumOne(Nx=:)),Allocatable :: PMOOne,PMOSum

        
    Contains
         
        Subroutine  DiagParticleFieldPeriodInitialization(DCF)
          Implicit none
          Type(DiagnosticsControlFlow),intent(in) :: DCF
          Integer(4) :: Nx
          Nx=DCF%Nx
          Allocate(ParticleMomentumOne(Nx=Nx) :: PMOOne)
        End Subroutine  DiagParticleFieldPeriodInitialization   
End Module ModuleDiagnosticsMomentum&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 21 May 2017 09:37:39 GMT</pubDate>
    <dc:creator>Wei_J_3</dc:creator>
    <dc:date>2017-05-21T09:37:39Z</dc:date>
    <item>
      <title>Internal compiler error : Allocatable with Parameterized Derived Types</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-compiler-error-Allocatable-with-Parameterized-Derived/m-p/1111907#M129330</link>
      <description>&lt;P&gt;------ Build started: Project: ICEBug20170521, Configuration: Debug|Win32 ------&lt;/P&gt;

&lt;P&gt;Compiling with Intel(R) Visual Fortran Compiler 17.0.1.143 [IA-32]...&lt;BR /&gt;
	ICE.f90&lt;BR /&gt;
	E:\20160922\Program\20170520DiagNew\20170520DiagNew\ICE.f90(1): catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report. &amp;nbsp;Note: File and line given may not be explicit cause of this error.&lt;BR /&gt;
	compilation aborted for E:\20160922\Program\20170520DiagNew\20170520DiagNew\ICE.f90 (code 1)&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;

Module ModuleDiagnosticsMomentum
    Implicit none
    
                 Type :: Grid1D(Nx,Ns)
                        Integer(4),Len :: Nx=NxMax,Ns=1_4
                        Real(8) ::  Value(1:Nx,1:Ns)
                        Integer(4) :: NameIndex=10000
                        Integer(4) :: NsIndex=1
                        Real(8) :: Dx=1.d0
              End Type Grid1D
        
    Type DiagnosticsControlFlow
           Integer(4) :: DiagnosticsModel=1
           Real(8)  :: Nx=1,Ny=1,Ns=1
           Real(8)  :: Dx,Dt
           Integer(4) :: StepStart=1,StepEnd=1,NDiagStep=0
           Integer(4) :: NDiagTotal=1,NDiagInterval=1
     End Type DiagnosticsControlFlow
        
    Type DiagnosticsMomentum
            Type(DiagnosticsControlFlow) :: DCF
            Type(Grid1D(Nx=:,Ns=:)),Allocatable :: G1D
    Contains
             Procedure :: Init=&amp;gt;DiagParticleFieldPeriodInitialization
    EndType DiagnosticsMomentum
    
    !Type(DiagnosticsMomentum),Allocatable :: DiagnosticsMomentumLocal
    
    Contains
    
    Subroutine  DiagParticleFieldPeriodInitialization(DM,DCF)
         Implicit none
         Class(DiagnosticsMomentum) :: DM
         Type(DiagnosticsControlFlow),intent(in) :: DCF
         DM%DCF=DCF
         Allocate(Grid1D(Nx=DCF%Nx,Ns=DCF%Ns)::DM%G1D)
    End Subroutine  DiagParticleFieldPeriodInitialization
    
ENd Module ModuleDiagnosticsMomentum&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2017 09:20:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-compiler-error-Allocatable-with-Parameterized-Derived/m-p/1111907#M129330</guid>
      <dc:creator>Wei_J_3</dc:creator>
      <dc:date>2017-05-21T09:20:40Z</dc:date>
    </item>
    <item>
      <title>Other case of ICE</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-compiler-error-Allocatable-with-Parameterized-Derived/m-p/1111908#M129331</link>
      <description>&lt;P&gt;Other case of ICE&lt;/P&gt;

&lt;P&gt;------ Build started: Project: ICEBug20170521, Configuration: Debug|Win32 ------&lt;/P&gt;

&lt;P&gt;Compiling with Intel(R) Visual Fortran Compiler 17.0.1.143 [IA-32]...&lt;BR /&gt;
	ICE2.f90&lt;BR /&gt;
	E:\20160922\Program\ICEBug20170521\ICEBug20170521\ICE2.f90(1): catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report. &amp;nbsp;Note: File and line given may not be explicit cause of this error.&lt;BR /&gt;
	compilation aborted for E:\20160922\Program\ICEBug20170521\ICEBug20170521\ICE2.f90 (code 1)&lt;/P&gt;

&lt;P&gt;Build log written to &amp;nbsp;"file://E:\20160922\Program\ICEBug20170521\ICEBug20170521\Debug\BuildLog.htm"&lt;BR /&gt;
	ICEBug20170521 - 1 error(s), 0 warning(s)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;Module ModuleDiagnosticsMomentum
    Implicit none
        Type ParticleMomentumOne(Nx)
                        Integer(4),Len :: Nx=NxMax
                        Integer(4) :: Timer=0
                        Real(8) ::  RhoOne(1:Nx),ChiOne(1:Nx)
                        Real(8) ::  JxOne(1:Nx),JyOne(1:Nx),JzOne(1:Nx)
                        Real(8) ::  TOne(1:Nx)
        EndType ParticleMomentumOne
        
      Type DiagnosticsControlFlow
           Integer(4) :: DiagnosticsModel=1
           Real(8)  :: Nx=1,Ny=1,Ns=1
           Real(8)  :: Dx,Dt
           Integer(4) :: StepStart=1,StepEnd=1,NDiagStep=0
           Integer(4) :: NDiagTotal=1,NDiagInterval=1
     End Type DiagnosticsControlFlow

        Type(ParticleMomentumOne(Nx=:)),Allocatable :: PMOOne,PMOSum

        
    Contains
         
        Subroutine  DiagParticleFieldPeriodInitialization(DCF)
          Implicit none
          Type(DiagnosticsControlFlow),intent(in) :: DCF
          Allocate(ParticleMomentumOne(Nx=DCF%Nx) :: PMOOne)
        End Subroutine  DiagParticleFieldPeriodInitialization   
End Module ModuleDiagnosticsMomentum&lt;/PRE&gt;

&lt;P&gt;But It compiles with a small mocification:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;Module ModuleDiagnosticsMomentum
    Implicit none
        Type ParticleMomentumOne(Nx)
                        Integer(4),Len :: Nx=NxMax
                        Integer(4) :: Timer=0
                        Real(8) ::  RhoOne(1:Nx),ChiOne(1:Nx)
                        Real(8) ::  JxOne(1:Nx),JyOne(1:Nx),JzOne(1:Nx)
                        Real(8) ::  TOne(1:Nx)
        EndType ParticleMomentumOne
        
      Type DiagnosticsControlFlow
           Integer(4) :: DiagnosticsModel=1
           Real(8)  :: Nx=1,Ny=1,Ns=1
           Real(8)  :: Dx,Dt
           Integer(4) :: StepStart=1,StepEnd=1,NDiagStep=0
           Integer(4) :: NDiagTotal=1,NDiagInterval=1
     End Type DiagnosticsControlFlow

        Type(ParticleMomentumOne(Nx=:)),Allocatable :: PMOOne,PMOSum

        
    Contains
         
        Subroutine  DiagParticleFieldPeriodInitialization(DCF)
          Implicit none
          Type(DiagnosticsControlFlow),intent(in) :: DCF
          Integer(4) :: Nx
          Nx=DCF%Nx
          Allocate(ParticleMomentumOne(Nx=Nx) :: PMOOne)
        End Subroutine  DiagParticleFieldPeriodInitialization   
End Module ModuleDiagnosticsMomentum&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2017 09:37:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-compiler-error-Allocatable-with-Parameterized-Derived/m-p/1111908#M129331</guid>
      <dc:creator>Wei_J_3</dc:creator>
      <dc:date>2017-05-21T09:37:39Z</dc:date>
    </item>
    <item>
      <title>Thank you for reporting this</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-compiler-error-Allocatable-with-Parameterized-Derived/m-p/1111909#M129332</link>
      <description>&lt;P&gt;Thank you for reporting this internal error and for the concise reproducer. I confirmed the error and reported this to our Developers. I am seeing successful compilation with newer internal 18.0 compilers so it is possible this relates to a previously reported issue that has been fixed.&lt;/P&gt;

&lt;P&gt;(Internal tracking id: CMPLRS-43169)&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 17:50:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-compiler-error-Allocatable-with-Parameterized-Derived/m-p/1111909#M129332</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2017-05-22T17:50:54Z</dc:date>
    </item>
  </channel>
</rss>

