This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: [Patch, Fortran] PR64771 - Fix coarray ICE


On Sat, Jan 24, 2015 at 06:13:04PM +0100, Tobias Burnus wrote:
>        if (s1->as->type == AS_EXPLICIT)
> -	for (i = 0; i < s1->as->rank + s1->as->corank; i++)
> +	for (i = 0; i < s1->as->rank + std::max(0, s1->as->corank-1); i++)

Doesn't this require '#include <algorithms>'?
I suspect that you are depending on namespace pollution
via some other header (coretypes.h?).

-- 
Steve


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