This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/16433] New: gfortran wrong hexadecimal constant warning


The following code, derived from g77.dg/pr5473.f, gives an incorrect warning.
I think it is standard Fortran 77/90/95.

      real x
      double precision dx
      x = 2.0
      dx = x
      end


/usr/local/obj/gcc-f/gcc/testsuite/../gfortran -B/usr/local/obj/gcc-
f/gcc/testsuite/../ /usr/local/src/gcc/gcc/testsuite/gfortran.dg/pr5473a.f -
O0 -pedantic-errors -S -o pr5473a.s
 In file /usr/local/src/gcc/gcc/testsuite/gfortran.dg/pr5473a.f:4

      dx = x
           1
Warning: Extension: Hexadecimal constant at (1) uses non-standard syntax.

-- 
           Summary: gfortran wrong hexadecimal constant warning
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: billingd at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]