This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input'
- From: "P dot Schaffnit at access dot rwth-aachen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2008 11:57:45 -0000
- Subject: [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input'
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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