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

            Bug ID: 120458
           Summary: module-name does not allow non-ASCII characters
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
            Blocks: 103524
  Target Milestone: ---

I think this should be valid in C++20:

export module 汉字;


$ g++ -std=c++20 c.cc -fmodules
./c.cc:1:8: fatal error: unknown compiled module interface: malformed string
'ERROR 'unrecognized \'MODULE-EXPORT \'汉字\'\'''
    1 | export module 汉字;
      |        ^~~~~~
compilation terminated.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524
[Bug 103524] [meta-bug] modules issue

Reply via email to