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

            Bug ID: 109105
           Summary: Error-prone format string building in resolve.cc
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: translation
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---

The function resolve_operator constructs a format string and then passes it to
gfc_error. This approach is wrong, and if a translator such as me makes a typo
in the translation, GCC can crash.

Instead of jumping to bad_op, each error must be handled individually, and the
messages to be translated must be marked as having format gcc-internal-format
or gfc-internal-format, not c-format.
  • [Bug fortran/109105] New: Error-... roland.illig at gmx dot de via Gcc-bugs

Reply via email to