Compilation warnings with 'cpp-input'
Philippe Schaffnit
P.Schaffnit@access.rwth-aachen.de
Wed May 14 11:55:00 GMT 2008
Hi!
First of all, sorry if this is already known...
I think this was working properly before (when?), but '-x f95-cpp-input'
seems to damage compilation warning (locus?), one can live with it, but
as long as '-cpp' isn't working yet, this is a bit annoying...
Should I file a PR for this?
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 -x f95-cpp-input -c Check_Warnings.f90
: In function 'test':
:8: warning: 'junk_2' is used uninitialized in this function
gfortran -g -Wall -O1 -c Check_Warnings.f90
Check_Warnings.f90: In function 'test':
Check_Warnings.f90:8: warning: 'junk_2' is used uninitialized in this
function
gfortran --version
GNU Fortran (GCC) 4.4.0 20080514 (experimental) [trunk revision 135284]
Copyright (C) 2008 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
More information about the Fortran
mailing list