This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/56849] Missing compile-time shape check for RESHAPE assignments


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]