On 8/28/23 4:51 AM, David Laight wrote:> I just found a(nother) clang bug:> int f(void) { return "a"[2]; }> compiles to just a 'return'.I don't think that's a bug. It's undefined behavior due to anout-of-bound read. What do you expect it to return?-- Ammar Faizi