[Bug fortran/88710] [F08] Sourced allocation of array fails, yielding wrong bounds and result

2019-01-05 Thread c...@mnet-mail.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88710 --- Comment #4 from c...@mnet-mail.de --- Thanks, this caught the bounds violation with the following output: lbound/ubound(a):-1-1 1 2 1 1 lbound/ubound(b):-1-1 1 2 1 1 lbound/ubound(c):-1

[Bug fortran/88710] [F08] Sourced allocation of array fails, yielding wrong bounds and result

2019-01-05 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88710 --- Comment #3 from Dominique d'Humieres --- > For what it's worth, I have compiled the code also with '-Wall' > and '-Warray-bounds' but both these options didn't give any warning. The relevant option is -fcheck=bounds.

[Bug fortran/88710] [F08] Sourced allocation of array fails, yielding wrong bounds and result

2019-01-05 Thread c...@mnet-mail.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88710 --- Comment #2 from c...@mnet-mail.de --- Yes, the said block accesses 't' outside its bounds (because the returned bounds are wrong). Thanks for mentioning this. For what it's worth, I have compiled the code also with '-Wall' and

[Bug fortran/88710] [F08] Sourced allocation of array fails, yielding wrong bounds and result

2019-01-05 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88710 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|