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

            Bug ID: 116872
           Summary: gcc accepts unnormalized identifiers
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: michael.kenzel at gmail dot com
  Target Milestone: ---

According to [lex.name]/1, a program that contains an identifier that's not in
Unicode Normalization Form C is ill-formed.
gcc does not seem to correctly diagnose this issue.

For example, the following code is accepted without error or warning:

        int \u00B5;  // this should be ill-formed, MICRO SIGN cannot appear in
NFC

Reply via email to