From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7A7943889816; Wed, 4 Aug 2021 14:08:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A7943889816 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/100977] [C++23] Implement C++ Identifier Syntax using Unicode Standard Annex 31 Date: Wed, 04 Aug 2021 14:08:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2021 14:08:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100977 --- Comment #2 from Jakub Jelinek --- Created attachment 51258 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D51258&action=3Dedit gcc12-pr100977-1.patch I think I found a bug in the makeucnid.c program, sometimes the ranges are split even when they contain the identical flags and combining value (which resul= ts in unnecessarily large table), but in other cases, e.g. U+0483 to U+0487 inclusive are combining 230 and U+0488 is combining 0, but the generated file had: { 0| 0| 0|C11| 0|CID|NFC|NKC| 0, 0, 0x0482 }, { 0| 0| 0|C11| 0|CID|NFC|NKC| 0, 230, 0x0483 }, { 0| 0| 0|C11| 0|CID|NFC|NKC| 0, 230, 0x0484 }, { 0| 0| 0|C11| 0|CID|NFC|NKC| 0, 230, 0x0485 }, { 0| 0| 0|C11| 0|CID|NFC|NKC| 0, 230, 0x0486 }, { 0| 0| 0|C11| 0|CID|NFC|NKC| 0, 0, 0x048f }, i.e. 0x0487 would be handled as non-combining.=