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

            Bug ID: 118499
           Summary: Exponentiation of UNSIGNED is rejected
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anlauf at gcc dot gnu.org
  Target Milestone: ---

The following code is rejected:

  print *, 10U * 10U ! OK
  print *, 10U ** 2  ! rejected
end


% gfc-15 unsigned-exp.f90 -funsigned                          
unsigned-exp.f90:2:10:

    2 |   print *, 10U ** 2  ! rejected
      |          1
Error: Exponentiation not valid at (1) for UNSIGNED(4) and INTEGER(4)


I believe that this is a pretty much acceptable operation.

Reply via email to