Re: gcc cannot build correctly famous hello program, clang does it correctly

2022-09-07 Thread Jakub Jelinek via Gcc-bugs
On Wed, Sep 07, 2022 at 12:36:22PM +0200, Alex Ernst via Gcc-bugs wrote: > $ gcc -v > gcc version 10.2.1 20210110 (Debian 10.2.1-6) > > $ clang -v > Debian clang version 11.0.1-2 > > $ cat hello.c > int i;main(){for(;i["] o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);} Garbage in, g

gcc cannot build correctly famous hello program, clang does it correctly

2022-09-07 Thread Alex Ernst via Gcc-bugs
$ gcc -v gcc version 10.2.1 20210110 (Debian 10.2.1-6) $ clang -v Debian clang version 11.0.1-2 $ cat hello.c int i;main(){for(;i["]