[Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input'

P dot Schaffnit at access dot rwth-aachen dot de gcc-bugzilla@gcc.gnu.org
Tue May 27 11:58:00 GMT 2008


Hi!

'-cpp' or '-x f95-cpp-input' seem to damage compilation warning (locus?), one
can certainly live with it, but this is a bit annoying...

Thanks!

Philippe

PS:

cat Check_Warnings.f90
!
      PROGRAM Test
!
      IMPLICIT NONE
!
      INTEGER ::   Junk_1, Junk_2, Junk_3
!
      Junk_1 = Junk_2
!
      END PROGRAM Test
!

gfortran -g -Wall -O1 -c Check_Warnings.f90
Check_Warnings.f90: In function 'test':
Check_Warnings.f90:9: warning: 'junk_2' is used uninitialized in this function

gfortran -g -Wall -O1 -cpp -c Check_Warnings.f90

: In function 'test':

:9: warning: 'junk_2' is used uninitialized in this function

gfortran -g -Wall -O1 -x f95-cpp-input -c Check_Warnings.f90

: In function 'test':

:9: warning: 'junk_2' is used uninitialized in this function


gfortran --version
GNU Fortran (GCC) 4.4.0 20080527 (experimental) [trunk revision 135966]
...


-- 
           Summary: Missing file name in compilation diagnostics with '-cpp'
                    or '-x f95-cpp-input'
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: P dot Schaffnit at access dot rwth-aachen dot de


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



More information about the Gcc-bugs mailing list