https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93253

            Bug ID: 93253
           Summary: Regression on non-standard hex constant syntax
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fx at gnu dot org
  Target Milestone: ---

I tried to build the NAS benchmarks with snapshot 'GNU Fortran (GCC) 10.0.0
20200105 (experimental)' and got:

  cd ../common; gfortran-10 -c  -Ofast -march=native -std=legacy -fdec -g
randi8.f
  randi8.f:26:20:

     26 |       data i246m1/X'00003FFFFFFFFFFF'/
        |                    1
  Error: Hexadecimal constant at (1) uses nonstandard syntax
  randi8.f:57:20:

     57 |       data i246m1/X'00003FFFFFFFFFFF'/
        |                    1
  Error: Hexadecimal constant at (1) uses nonstandard syntax

Gfortran 8 doesn't complain, even without the "-std=legacy -fdec".  (I
don't know where this syntax originates, but I guess DEC.)
I haven't tried v9.

[I've also reported an NPB bug, but I guess NPB isn't alone.]

Reply via email to