Re: [patch, fortran] PR Detect same values in vector expression subscripts

2013-07-28 Thread Thomas Koenig
Hi Tobias and Mikael, > Something went wrong with the indentation of the last two lines. Fixed. > Additionally: How about simply returning with an "return false;"? After some more thinking, I used the option that you suggested. We'll see if we get feedback from users who want something else,

Re: [patch, fortran] PR Detect same values in vector expression subscripts

2013-07-28 Thread Mikael Morin
Le 28/07/2013 14:57, Thomas Koenig a écrit : > Hello world, > > this patch yields an error for identical values in vector expression > subscripts. The algorithm is O(n**2) because > > a) It would be impossible to detect a([i,i]) otherwise > b) This is not likely to be a performance bottleneck be

Re: [patch, fortran] PR Detect same values in vector expression subscripts

2013-07-28 Thread Tobias Burnus
Hello Thomas, Thomas Koenig wrote: this patch yields an error for identical values in vector expression Regression-tested. OK for trunk? + { + if (n->iterator != NULL) + continue; + +