Re: RE: [RFC] tools/nolibc: replace duplicated -ENOSYS return with single -ENOSYS return

From: Ammar Faizi
Date: Wed Aug 30 2023 - 14:53:09 EST


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 an
out-of-bound read. What do you expect it to return?

--
Ammar Faizi