https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96290
Gabriel Ravier <gabravier at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gabravier at gmail dot com --- Comment #1 from Gabriel Ravier <gabravier at gmail dot com> --- I've encountered a similarly nonsensical error on trunk, though not with VLAs, instead with a char array of size 0: #include <stdio.h> int main(){ puts(((char[0]){})); } <source>: In function 'main': <source>:4:9: warning: 'puts' reading 1 or more bytes from a region of size 0 [-Wstringop-overread] 4 | puts(((char[0]){})); | ^~~~~~~~~~~~~~~~~~~ <source>:4:24: note: source object '<U ea0>' of size 0 4 | puts(((char[0]){})); | ^ ASM generation compiler returned: 0 <source>: In function 'main': <source>:4:9: warning: 'puts' reading 1 or more bytes from a region of size 0 [-Wstringop-overread] 4 | puts(((char[0]){})); | ^~~~~~~~~~~~~~~~~~~ <source>:4:24: note: source object '<U ea0>' of size 0 4 | puts(((char[0]){})); | ^