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/58750] Allocate-on-assignment fails when using size(other_array) in the assignment statement


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58750

--- Comment #1 from Adam Hirst <adam at aphirst dot karoo.co.uk> ---
I was able to create a minimal program which reproduces the problem I'm having:

http://pastebin.com/KVjjJzkQ

The problem disappears if you remove all my KIND declarations (i8) from the
integers, so perhaps selected_int_kind (or the value I chose) is not playing
nicely with this particular F2008 feature? Other stuff seems to work fine with
this KIND.

Also, to be completely clear on what my command line options are:

gfortran -Jobj/ -Wall   -std=f2008     -c /home/adam/test/main.f95 -o
obj/main.o
gfortran  -o bin/test obj/main.o   -s


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