Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 32230 - g77 does not handle #line flags properly
g77 does not handle #line flags properly
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
alpha Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-03-19 10:20 EST by Pawel Salek
Modified: 2007-04-18 12:32 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-03-21 07:40:28 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
t.f (175 bytes, text/plain)
2001-03-19 10:21 EST, Pawel Salek
no flags Details

  None (edit)
Description Pawel Salek 2001-03-19 10:20:20 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17-14 i686; en-US; Galeon)

g77 from gcc-g77-2.96-75 ignores fortran variable declarations when
interleaved with #line cpp generated constructions.

Reproducible: Always
Steps to Reproduce:
1. g77 f.f
where f.f is the attached program.

It is enough to remove cpp-generated #line directives from the code to make
the program compile

Actual Results:  ../tmp.F:3:
         ANTI = .FALSE.
         1      2
Type disagreement between expressions at (1) and (2)

Expected Results:  Silient, error-free compilation.
Comment 1 Pawel Salek 2001-03-19 10:21:55 EST
Created attachment 12983 [details]
Comment 2 Jakub Jelinek 2001-03-21 07:40:17 EST
This has been broken also e.g. in egcs 1.1.2, gcc 2.95.x, gcc-3_0-branch and
Anyway, I've fixed this in:
and the fix will appear in the next gcc-f77 build.
Comment 3 Jakub Jelinek 2001-03-30 05:25:50 EST
The fix is in gcc-g77-2.96-80.

Note You need to log in before you can comment on or make changes to this bug.