This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Possible Buglet in gfortran Release 143193 (and 4.3.1 and 4.3.2)
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Tom Browder <tom dot browder at gmail dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Fri, 23 Jan 2009 17:25:42 -0800
- Subject: Re: Possible Buglet in gfortran Release 143193 (and 4.3.1 and 4.3.2)
- References: <8bc817ee0901231615o7dc5e86cp33b4aa9ca1ed5d70@mail.gmail.com>
On Fri, Jan 23, 2009 at 06:15:23PM -0600, Tom Browder wrote:
> I am involved in porting a large code base from one compatible with
> Portland Group's pgf77 to gfortran. I am finding possible gfortran
> bugs as I deal with warnings and errors and compare results between
> the two compilers (I'm using pg v. 6.1 now working from home with an
> old license but my company is using pg v. 7.0 for their
> distributables).
>
> The following does not yield any warnings from gfortran but it throws
> a warning with pgf77:
>
> program main
> real pi
> pi = acos(-1.); ! <== spurious semicolon
> end
>
> PGFTN-W-0025-Illegal character (;) - ignored (semi.f: 3)
> 0 inform, 1 warnings, 0 severes, 0 fatal for main
> PGFTN/x86 Linux/x86 6.1-6: compilation completed with warnings
>
> Note that if the semicolon is replaced with a period both compilers
> throw an error.
> I'll file a bug report if this is a valid bug.
>
A semicolon as it appears above is legal.
See Sections 3.3.1.2 and 3.3.2.2 of the Fortran 95 standard.
--
Steve