Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
g95 coarray bug & question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jared Ahern  
View profile  
 More options May 29, 2:59 pm
From: Jared Ahern <jared.ah...@gmail.com>
Date: Fri, 29 May 2009 11:59:16 -0700 (PDT)
Local: Fri, May 29 2009 2:59 pm
Subject: g95 coarray bug & question
Hey folks,

A couple things:

1) Do you need to use the version of g95 bundled with the coarray
code, or can you use an updated version?

2) Does anyone have any luck compiling this code?  I get an internal
compiler error.

PROGRAM error1
   IMPLICIT NONE
   TYPE Vec
       REAL, ALLOCATABLE :: c(:)
   END TYPE Vec
   TYPE LongVec
       TYPE(Vec), ALLOCATABLE :: x[:]
   END TYPE LongVec
   TYPE(LongVec) :: a
   ALLOCATE(a%x[*])
   ALLOCATE(a%x%c(5)) ! error is here
END PROGRAM error1

I filed a bug with Andy, but haven't heard back yet.

Thanks,
Jared


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Damian Rouson  
View profile  
 More options May 29, 6:36 pm
From: Damian Rouson <dam...@rouson.net>
Date: Fri, 29 May 2009 15:36:44 -0700
Local: Fri, May 29 2009 6:36 pm
Subject: Re: g95 coarray bug & question
I believe the draft Fortran 2008 standard prohibits co-array
components inside serived type.  Is it possible this is causing your
problem?

Damian

On 5/29/09, Jared Ahern <jared.ah...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jared Ahern  
View profile  
 More options May 30, 4:50 pm
From: Jared Ahern <jared.ah...@gmail.com>
Date: Sat, 30 May 2009 13:50:29 -0700 (PDT)
Local: Sat, May 30 2009 4:50 pm
Subject: Re: g95 coarray bug & question
I believe that allocatable components are allowed, as per 4.5.2 and
4.5.4 of the draft standard.  There is also a blurb about it on page 7
of John Reid's N1724.pdf paper on coarrays in F08.

Plus, I get an internal compiler error, not a syntax error, so clearly
there's a bug in g95, even if my code is invalid.  I can make the code
above work by changing the declaration of the "x" component to be:

TYPE(Vec), ALLOCATABLE :: x(:)[:]

and allocating appropriately.  It's just silly to allocate x(1)[*]
when you don't need to.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google