This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR81447 - [7/8] gfortran fails to recognize the exact dynamic type of a polymorphic entity that was allocated in a external procedure
- From: Thomas Koenig <tkoenig at netcologne dot de>
- To: Andre Vehreschild <vehre at gmx dot de>, Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Date: Sat, 4 Nov 2017 19:35:31 +0100
- Subject: Re: [Patch, fortran] PR81447 - [7/8] gfortran fails to recognize the exact dynamic type of a polymorphic entity that was allocated in a external procedure
- Authentication-results: sourceware.org; auth=none
- References: <CAGkQGi+O8g1c_C3=WF8D=CMLN495rE84dO7LrWwUmcKKEaTSBw@mail.gmail.com> <CAGkQGiKzv6TzgvqwGNUAp_Czdwt-_UUgimUdL4QnyQGZntA6EQ@mail.gmail.com> <20171104190339.2ba519d4@vepi2>
Hi Andre,
Shouldn't that better be
if ((gfc_option.allow_std & GFC_STD_F2003) > 0
I think that
if ((gfc_option.allow_std & GFC_STD_F2003)
would be better - the allow_std field is signed, and
things could get hariy if we ever have close to 32
standards we would like to support.
Hm, come to think of it, is there a special reason to keep
this signed, or could we just change it to unsigned?
Regards
Thomas