public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Thomas Koenig <tkoenig@netcologne.de>
To: Paul Richard Thomas <paul.richard.thomas@gmail.com>
Cc: fortran@gcc.gnu.org, gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [Patch, fortran] PR48462 - [4.6/4.7 Regression] realloc on assignment: matmul Segmentation Fault with Allocatable Array + PR48746
Date: Fri, 29 Apr 2011 21:08:00 -0000	[thread overview]
Message-ID: <4DBB185C.1050408@netcologne.de> (raw)
In-Reply-To: <BANLkTimSKwoOz1X+YMUftGyfJLJoZpEG9A@mail.gmail.com>

Hello Paul,

there's another point: The sizes are also not set correctly.

ig25@linux-fd1f:~/Krempel/H> cat mm.f90
program main
   implicit none
   integer, parameter :: m=10, n=12, count=4
   double precision :: a(m, count), b(count, n), c(m, n)
   double precision, dimension(:,:), allocatable :: tmp

   call random_number(a)
   call random_number(b)
   tmp = matmul(a,b)
   print *,size(tmp,1)
   print *,size(tmp,2)
end program main
ig25@linux-fd1f:~/Krempel/H> gfortran mm.f90
ig25@linux-fd1f:~/Krempel/H> ./a.out
            1
            1
ig25@linux-fd1f:~/Krempel/H>

  parent reply	other threads:[~2011-04-29 20:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-29 17:49 Paul Richard Thomas
2011-04-29 17:53 ` Steve Kargl
2011-04-29 20:45 ` Thomas Koenig
2011-04-29 21:08 ` Thomas Koenig [this message]
2011-04-30 10:50   ` Paul Richard Thomas
2011-04-30 14:05     ` Paul Richard Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DBB185C.1050408@netcologne.de \
    --to=tkoenig@netcologne.de \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=paul.richard.thomas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).