This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51946] file compiles properly on IBM xlf compiler and cary compiler
- From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 Jan 2012 18:16:38 +0000
- Subject: [Bug fortran/51946] file compiles properly on IBM xlf compiler and cary compiler
- Auto-submitted: auto-generated
- References: <bug-51946-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51946
--- Comment #5 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 2012-01-22 18:16:38 UTC ---
On Sun, Jan 22, 2012 at 05:45:27PM +0000, burnus at gcc dot gnu.org wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51946
>
> --- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-01-22 17:45:27 UTC ---
> (In reply to comment #0)
> > Created attachment 26412
> > taken from Damian Rouson's book , allocate seems to be the culprit
> > Source if from Damian Rouson from Sandia National Laboratories
> > It compiles properly with IBM xlf and Cray fortran compilers.
> > apparently the allocate statement
> > Allocate ( localprdct, source = rhs)
> > is the culprit
>
> I have to admit that I could not find that allocate statement. Neither in your
> attachment nor in the book's resources available at
> http://www.cambridge.org/rouson under "Resources available".
>
My guess is that it is line 204:
allocate(local_product,source=rhs)