<?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 derived type in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/derived-type/m-p/952670#M19977</link>
    <description>I have composed a code(below) using CVF 6.5A(Intel Windows NT 4.0) &lt;BR /&gt;At compiling, several error messages were printed. &lt;BR /&gt;But could not find out, the problems. &lt;BR /&gt;Is there anyone to help me ? &lt;BR /&gt;Thanks. &lt;BR /&gt; &lt;BR /&gt;*** source code *** &lt;BR /&gt; &lt;BR /&gt;      module Common &lt;BR /&gt; &lt;BR /&gt;         type T_Type0 &lt;BR /&gt;            real*8,    pointer :: Coef(:) &lt;BR /&gt;            integer*4, pointer :: Indx(:) &lt;BR /&gt;         end type &lt;BR /&gt; &lt;BR /&gt;         type T_Type1 &lt;BR /&gt;            type (T_Type0), pointer :: Type1(:) &lt;BR /&gt;         end type &lt;BR /&gt; &lt;BR /&gt;         type T_Type2 &lt;BR /&gt;            type (T_Type1) :: Type2 &lt;BR /&gt;         end type &lt;BR /&gt; &lt;BR /&gt;         type (T_Type2) :: Type3 &lt;BR /&gt; &lt;BR /&gt;      end module &lt;BR /&gt; &lt;BR /&gt;      use Common &lt;BR /&gt;      implicit real*8 (a-h, o-z), integer*4 (i-n) &lt;BR /&gt; &lt;BR /&gt;      if(not(associated(Type3.Type2.Type1)))          &amp;amp; &lt;BR /&gt;         allocate(Type3.Type2.Type1(10)) &lt;BR /&gt; &lt;BR /&gt;      if(not(associated(Type3.Type2.Type1(1).Indx)))  &amp;amp; &lt;BR /&gt;         allocate(Type3.Type2.Type1(1).Indx(100)) &lt;BR /&gt; &lt;BR /&gt;      do i = 1, 100 &lt;BR /&gt;         Type3.Type2.Type1(1).Indx(i) = i &lt;BR /&gt;         write(*,*) i, Type3.Type2.Type1(1).Indx(i) &lt;BR /&gt;      end do &lt;BR /&gt; &lt;BR /&gt;      stop &lt;BR /&gt;      end &lt;BR /&gt; &lt;BR /&gt;*** error message *** &lt;BR /&gt; &lt;BR /&gt;Compaq Visual Fortran Optimizing Compiler Version 6.5 (Update A) &lt;BR /&gt;Copyright 2001 Compaq Computer Corp. All rights reserved. &lt;BR /&gt; &lt;BR /&gt;dum.f90 &lt;BR /&gt;dum.f90(25) : Error: Syntax error, found '.' when expecting one of: ( , ) &lt;BR /&gt;         allocate(Type3.Type2.Type1(10)) &lt;BR /&gt;-----------------------------^ &lt;BR /&gt;dum.f90(28) : Error: Syntax error, found '.' when expecting one of: ( , ) &lt;BR /&gt;         allocate(Type3.Type2.Type1(1).Indx(100)) &lt;BR /&gt;-----------------------------^ &lt;BR /&gt;dum.f90(25) : Error: An allocate/deallocate object must have the ALLOCATABLE or &lt;BR /&gt;POINTER attribute.   [TYPE2] &lt;BR /&gt;         allocate(Type3.Type2.Type1(10)) &lt;BR /&gt;------------------------^ &lt;BR /&gt;dum.f90(25) : Error: An allocate-shape-spec-list is required for this allocate o &lt;BR /&gt;bject.   [TYPE2] &lt;BR /&gt;         allocate(Type3.Type2.Type1(10)) &lt;BR /&gt;------------------------^ &lt;BR /&gt;dum.f90(25) : Error: An allocate/deallocate object must have the ALLOCATABLE or &lt;BR /&gt;POINTER attribute.   [TYPE1] &lt;BR /&gt;         allocate(Type3.Type2.Type1(10)) &lt;BR /&gt;------------------------------^ &lt;BR /&gt;dum.f90(25) : Error: The rank of the allocate-shape-spec-list differs from the r &lt;BR /&gt;ank of the allocate-object.   [TYPE1] &lt;BR /&gt;         allocate(Type3.Type2.Type1(10)) &lt;BR /&gt;------------------------------^ &lt;BR /&gt;dum.f90(28) : Error: An allocate/deallocate object must have the ALLOCATABLE or &lt;BR /&gt;POINTER attribute.   [TYPE2] &lt;BR /&gt;         allocate(Type3.Type2.Type1(1).Indx(100)) &lt;BR /&gt;------------------------^ &lt;BR /&gt;dum.f90(28) : Error: An allocate-shape-spec-list is required for this allocate o &lt;BR /&gt;bject.   [TYPE2] &lt;BR /&gt;         allocate(Type3.Type2.Type1(1).Indx(100)) &lt;BR /&gt;------------------------^ &lt;BR /&gt;dum.f90(28) : Error: This name has not been declared as an array.   [TYPE1] &lt;BR /&gt;         allocate(Type3.Type2.Type1(1).Indx(100)) &lt;BR /&gt;------------------------------^</description>
    <pubDate>Sun, 27 May 2001 13:28:02 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-05-27T13:28:02Z</dc:date>
    <item>
      <title>derived type</title>
      <link>https://community.intel.com/t5/Software-Archive/derived-type/m-p/952670#M19977</link>
      <description>I have composed a code(below) using CVF 6.5A(Intel Windows NT 4.0) &lt;BR /&gt;At compiling, several error messages were printed. &lt;BR /&gt;But could not find out, the problems. &lt;BR /&gt;Is there anyone to help me ? &lt;BR /&gt;Thanks. &lt;BR /&gt; &lt;BR /&gt;*** source code *** &lt;BR /&gt; &lt;BR /&gt;      module Common &lt;BR /&gt; &lt;BR /&gt;         type T_Type0 &lt;BR /&gt;            real*8,    pointer :: Coef(:) &lt;BR /&gt;            integer*4, pointer :: Indx(:) &lt;BR /&gt;         end type &lt;BR /&gt; &lt;BR /&gt;         type T_Type1 &lt;BR /&gt;            type (T_Type0), pointer :: Type1(:) &lt;BR /&gt;         end type &lt;BR /&gt; &lt;BR /&gt;         type T_Type2 &lt;BR /&gt;            type (T_Type1) :: Type2 &lt;BR /&gt;         end type &lt;BR /&gt; &lt;BR /&gt;         type (T_Type2) :: Type3 &lt;BR /&gt; &lt;BR /&gt;      end module &lt;BR /&gt; &lt;BR /&gt;      use Common &lt;BR /&gt;      implicit real*8 (a-h, o-z), integer*4 (i-n) &lt;BR /&gt; &lt;BR /&gt;      if(not(associated(Type3.Type2.Type1)))          &amp;amp; &lt;BR /&gt;         allocate(Type3.Type2.Type1(10)) &lt;BR /&gt; &lt;BR /&gt;      if(not(associated(Type3.Type2.Type1(1).Indx)))  &amp;amp; &lt;BR /&gt;         allocate(Type3.Type2.Type1(1).Indx(100)) &lt;BR /&gt; &lt;BR /&gt;      do i = 1, 100 &lt;BR /&gt;         Type3.Type2.Type1(1).Indx(i) = i &lt;BR /&gt;         write(*,*) i, Type3.Type2.Type1(1).Indx(i) &lt;BR /&gt;      end do &lt;BR /&gt; &lt;BR /&gt;      stop &lt;BR /&gt;      end &lt;BR /&gt; &lt;BR /&gt;*** error message *** &lt;BR /&gt; &lt;BR /&gt;Compaq Visual Fortran Optimizing Compiler Version 6.5 (Update A) &lt;BR /&gt;Copyright 2001 Compaq Computer Corp. All rights reserved. &lt;BR /&gt; &lt;BR /&gt;dum.f90 &lt;BR /&gt;dum.f90(25) : Error: Syntax error, found '.' when expecting one of: ( , ) &lt;BR /&gt;         allocate(Type3.Type2.Type1(10)) &lt;BR /&gt;-----------------------------^ &lt;BR /&gt;dum.f90(28) : Error: Syntax error, found '.' when expecting one of: ( , ) &lt;BR /&gt;         allocate(Type3.Type2.Type1(1).Indx(100)) &lt;BR /&gt;-----------------------------^ &lt;BR /&gt;dum.f90(25) : Error: An allocate/deallocate object must have the ALLOCATABLE or &lt;BR /&gt;POINTER attribute.   [TYPE2] &lt;BR /&gt;         allocate(Type3.Type2.Type1(10)) &lt;BR /&gt;------------------------^ &lt;BR /&gt;dum.f90(25) : Error: An allocate-shape-spec-list is required for this allocate o &lt;BR /&gt;bject.   [TYPE2] &lt;BR /&gt;         allocate(Type3.Type2.Type1(10)) &lt;BR /&gt;------------------------^ &lt;BR /&gt;dum.f90(25) : Error: An allocate/deallocate object must have the ALLOCATABLE or &lt;BR /&gt;POINTER attribute.   [TYPE1] &lt;BR /&gt;         allocate(Type3.Type2.Type1(10)) &lt;BR /&gt;------------------------------^ &lt;BR /&gt;dum.f90(25) : Error: The rank of the allocate-shape-spec-list differs from the r &lt;BR /&gt;ank of the allocate-object.   [TYPE1] &lt;BR /&gt;         allocate(Type3.Type2.Type1(10)) &lt;BR /&gt;------------------------------^ &lt;BR /&gt;dum.f90(28) : Error: An allocate/deallocate object must have the ALLOCATABLE or &lt;BR /&gt;POINTER attribute.   [TYPE2] &lt;BR /&gt;         allocate(Type3.Type2.Type1(1).Indx(100)) &lt;BR /&gt;------------------------^ &lt;BR /&gt;dum.f90(28) : Error: An allocate-shape-spec-list is required for this allocate o &lt;BR /&gt;bject.   [TYPE2] &lt;BR /&gt;         allocate(Type3.Type2.Type1(1).Indx(100)) &lt;BR /&gt;------------------------^ &lt;BR /&gt;dum.f90(28) : Error: This name has not been declared as an array.   [TYPE1] &lt;BR /&gt;         allocate(Type3.Type2.Type1(1).Indx(100)) &lt;BR /&gt;------------------------------^</description>
      <pubDate>Sun, 27 May 2001 13:28:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/derived-type/m-p/952670#M19977</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-27T13:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: derived type</title>
      <link>https://community.intel.com/t5/Software-Archive/derived-type/m-p/952671#M19978</link>
      <description>Replace the . component separators with the standard % - then it will compile.  The dots should work - we'll look at that.&lt;BR /&gt;&lt;BR /&gt;Please note that our free support address is vf-support@compaq.com  I see that you asked here and in comp.lang.fortran, but not at our support address.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Mon, 28 May 2001 02:11:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/derived-type/m-p/952671#M19978</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-05-28T02:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: derived type</title>
      <link>https://community.intel.com/t5/Software-Archive/derived-type/m-p/952672#M19979</link>
      <description>Ok !! &lt;BR /&gt;It works fine. &lt;BR /&gt;Thanks Steve.</description>
      <pubDate>Mon, 28 May 2001 11:54:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/derived-type/m-p/952672#M19979</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-28T11:54:31Z</dc:date>
    </item>
  </channel>
</rss>

