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

            Bug ID: 112873
           Summary: F2023 degree trig functions
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kargl at gcc dot gnu.org
  Target Milestone: ---

Created attachment 56810
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56810&action=edit
* intrinsic.cc(add_functions): Update the standard that the various   degree
trigonometric functions come from.   (gfc_check_intrinsic_standard):  Add an
error string for F2023.

The Fortran 2023 standard has added a number degree trigonometric
functions.  See 23-007r1.pdf, p. xiii:

   The intrinsic functions ACOSD, ASIND, ATAND, ATAN2D, COSD, SIND, and
   TAND are trigonometric functions in which angles are specified in
   degrees.

gfortran already supported these functions under its DEC Fortran
compatibility and made them available under -std=gnu.  There is a
-fdec-math function, but that seems to be non-functional or I don't
understand what it does.

In any event, the attached patch changes GFC_STD_GNU to GFC_STD_F2023
where appropriate.  It also added the case for GFC_STD_F2023 for 
error messages.

Reply via email to