Red Hat Bugzilla – Bug 32230
g77 does not handle #line flags properly
Last modified: 2007-04-18 12:32:15 EDT
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.
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.
Type disagreement between expressions at (1) and (2)
Expected Results: Silient, error-free compilation.
Created attachment 12983 [details]
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.
The fix is in gcc-g77-2.96-80.