This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/56849] Missing compile-time shape check for RESHAPE assignments
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 Apr 2013 20:02:31 +0000
- Subject: [Bug fortran/56849] Missing compile-time shape check for RESHAPE assignments
- Auto-submitted: auto-generated
- References: <bug-56849-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56849
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2013-04-05 20:02:31 UTC ---
On x86_64-apple-darwin10, I get
pr56849.f90:3:
x(:,1:1) = reshape(y(::2), [1,2])
1
Error: Different shape for array assignment at (1) on dimension 1 (2 and 1)
for all the versions I have tested from 4.4.6 to a clean 4.9.0 at r197238.