Re: [patch, Fortran] PR 58146, enable array slice compile-time bounds checking

2013-08-25 Thread Mikael Morin
Le 22/08/2013 23:30, Mikael Morin a écrit : > Le 14/08/2013 23:46, Thomas Koenig a écrit : >> Hello world, >> >> the attached patch enables more sophisticated bounds-checking on >> array slices by using gfc_dep_difference to calculate extents. >> The information may also be useful in other places o

Re: [patch, Fortran] PR 58146, enable array slice compile-time bounds checking

2013-08-22 Thread Mikael Morin
Le 14/08/2013 23:46, Thomas Koenig a écrit : > Hello world, > > the attached patch enables more sophisticated bounds-checking on > array slices by using gfc_dep_difference to calculate extents. > The information may also be useful in other places of the > front end, I don't really know. > > There

Re: [patch, Fortran] PR 58146, enable array slice compile-time bounds checking

2013-08-15 Thread Dominique Dhumieres
Thomas, The two lines gfc_actual_arglist *args1; gfc_actual_arglist *args2; in gfc_dep_compare_expr must be removed. Otherwise the compilation aborts with .../../work/gcc/fortran/dependency.c: In function 'int gfc_dep_compare_expr(gfc_expr*, gfc_expr*)': ../../work/gcc/fortran/dependency

[patch, Fortran] PR 58146, enable array slice compile-time bounds checking

2013-08-14 Thread Thomas Koenig
Hello world, the attached patch enables more sophisticated bounds-checking on array slices by using gfc_dep_difference to calculate extents. The information may also be useful in other places of the front end, I don't really know. There is one wrinkle (alluded to in the comments) which makes this