Re: Clang-built Gawk 5.2.1 regex oddity

2023-01-01 Thread Paul Eggert
This is a serious bug in Clang: it generates incorrect machine code. The code that Clang generates for the following (gawk/support/dfa.c lines 1141-1143): ((dfa->syntax.dfaopts & DFA_CONFUSING_BRACKETS_ERROR ? dfaerror : dfawarn) (_("character class syntax is [[:space:]], not [:

stable branches update

2023-01-01 Thread Bruno Haible
Hi, I updated the branches stable-202201 and stable-202207 with the bug fixes from the last three months. Also, I created a new stable branch stable-202301. The branch stable-202201 being one year old, it will no longer be updated. Users of this branch are recommended to switch to stable-202207.

Re: Clang-built Gawk 5.2.1 regex oddity

2023-01-01 Thread arnold
Hi Sam, Thanks for the further info. Looking at both bits of dfa.c code, I don't see how either can be undefined behavior. In any case, dfa.c is copied directly from GNULIB, so I am cc-ing bug-gnulib. Paul & Jim, for background, please see the thread at https://lists.gnu.org/archive/html/bug-ga