[Patch, Fortran] PR64771 - Fix coarray ICE
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Tue Jan 27 16:10:00 GMT 2015
Jakub Jelinek <jakub@redhat.com> writes:
>> The problem is (as so often) that <algorithm> was included *before*
>> config.h. Moving it after the other includes allows interface.c to
>> compile without warnings.
>
> Why don't you use MAX macro instead of std::max as everywhere else
> in the gcc sources?
No idea, ask Tobias :-) Anyway, the original patch would most likely
have worked: system.h already includes <algorithm>.
This one compiles just as well, of course.
Rainer
2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* interface.c: Remove <algorithm>.
(check_dummy_characteristics): Use MAX instead of std::max.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gfortran-no-std-max.patch
Type: text/x-patch
Size: 840 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150127/5a559b4c/attachment.bin>
-------------- next part --------------
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Fortran
mailing list