From: Al Greynolds on
Can somebody submit the following (minor) bug in gfortran 4.6 for me?
I haven't had much luck with Bugzilla.

character(1) c
read(*,*) c
! latest 4.6 doesn't like the following unless broken into separate
lines
if (c=='y') stop; if (c=='Y') stop
end

Al Greynolds
www.ruda-cardinal.com
From: steve on
On Jun 1, 2:22 pm, Al Greynolds <awgreyno...(a)earthlink.net> wrote:
> Can somebody submit the following (minor) bug in gfortran 4.6 for me?
> I haven't had much luck with Bugzilla.
>
> character(1) c
>   read(*,*) c
> ! latest 4.6 doesn't like the following unless broken into separate
> lines
>   if (c=='y') stop; if (c=='Y') stop
> end
>

Can you define latest?

It works for me with gfortran 4.6.0 20100510.

--
steve
From: Al Greynolds on
On Jun 1, 2:29 pm, steve <kar...(a)comcast.net> wrote:
> On Jun 1, 2:22 pm, Al Greynolds <awgreyno...(a)earthlink.net> wrote:
>
> > Can somebody submit the following (minor) bug in gfortran 4.6 for me?
> > I haven't had much luck with Bugzilla.
>
> > character(1) c
> >   read(*,*) c
> > ! latest 4.6 doesn't like the following unless broken into separate
> > lines
> >   if (c=='y') stop; if (c=='Y') stop
> > end
>
> Can you define latest?
>
> It works for me with gfortran 4.6.0 20100510.
>
> --
> steve

I know an equation.com Window's build from 20100515 showed the
problem.

Al

From: steve on
On Jun 1, 2:44 pm, Al Greynolds <awgreyno...(a)earthlink.net> wrote:
> On Jun 1, 2:29 pm, steve <kar...(a)comcast.net> wrote:
>
>
>
> > On Jun 1, 2:22 pm, Al Greynolds <awgreyno...(a)earthlink.net> wrote:
>
> > > Can somebody submit the following (minor) bug in gfortran 4.6 for me?
> > > I haven't had much luck with Bugzilla.
>
> > > character(1) c
> > >   read(*,*) c
> > > ! latest 4.6 doesn't like the following unless broken into separate
> > > lines
> > >   if (c=='y') stop; if (c=='Y') stop
> > > end
>
> > Can you define latest?
>
> > It works for me with gfortran 4.6.0 20100510.
>
> > --
> > steve
>
> I know an equation.com Window's build from 20100515 showed the
> problem.
>
> Al

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44371

This appears to be regression introduced when STOP
and ALL_STOP were updated to F2008 features. I've
posted a suggested fix in the PR.

--
steve
From: Jerry DeLisle on
On 06/01/2010 06:59 PM, steve wrote:
> On Jun 1, 2:44 pm, Al Greynolds<awgreyno...(a)earthlink.net> wrote:
>> On Jun 1, 2:29 pm, steve<kar...(a)comcast.net> wrote:
>>
>>
>>
>>> On Jun 1, 2:22 pm, Al Greynolds<awgreyno...(a)earthlink.net> wrote:
>>
>>>> Can somebody submit the following (minor) bug in gfortran 4.6 for me?
>>>> I haven't had much luck with Bugzilla.
>>
>>>> character(1) c
>>>> read(*,*) c
>>>> ! latest 4.6 doesn't like the following unless broken into separate
>>>> lines
>>>> if (c=='y') stop; if (c=='Y') stop
>>>> end
>>
>>> Can you define latest?
>>
>>> It works for me with gfortran 4.6.0 20100510.
>>
>>> --
>>> steve
>>
>> I know an equation.com Window's build from 20100515 showed the
>> problem.
>>
>> Al
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44371
>
> This appears to be regression introduced when STOP
> and ALL_STOP were updated to F2008 features. I've
> posted a suggested fix in the PR.
>
I just committed the fix to 4.6 trunk. Thanks Al for the report. If Bugzilla
bugs you, one can post to fortran(a)gcc.gnu.org. Thanks Steve for help with the
test cases. Thanks Tobias for submitting the bugzilla so I would see this. My
apologies for the breakage.

Regards,

Jerry