This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR64771 - Fix coarray ICE
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>, Alessandro Fanfarillo <fanfarillo dot gcc at gmail dot com>
- Date: Sat, 24 Jan 2015 12:11:53 -0800
- Subject: Re: [Patch, Fortran] PR64771 - Fix coarray ICE
- Authentication-results: sourceware.org; auth=none
- References: <54C3D2A0 dot 5090905 at net-b dot de>
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