Re: Possible gcc bug

2022-07-05 Thread Marek Polacek via Gcc-bugs
On Wed, Jul 06, 2022 at 10:15:51AM +1000, Norman wrote: > Hi all, > > Consider this bit of code: > > unsigned int d=1,e=2,f; > >     if((d-e) < 0) >    { >    f=d-e; >    printf("f=%i",f); >    } > > gcc  -Wall -DLinux -D_FILE_OFFSET_BITS=64 -c scroll.c > > gcc compiles thi

Possible gcc bug

2022-07-05 Thread Norman
Hi all, Consider this bit of code: unsigned int d=1,e=2,f;     if((d-e) < 0)    {    f=d-e;    printf("f=%i",f);    } gcc  -Wall -DLinux -D_FILE_OFFSET_BITS=64 -c scroll.c gcc compiles this without a whimper. However the expression (d-e) < 0 always evaluates to false (0).

[Bug c/17432] Possible gcc bug when compiling f2c generated C-code

2005-05-14 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-15 03:07 --- Subject: Bug 17432 CVSROOT:/cvs/gcc Module name:gcc Branch: gcc-4_0-branch Changes by: [EMAIL PROTECTED] 2005-05-15 03:07:43 Modified files: gcc/testsuite : Change

[Bug c/17432] Possible gcc bug when compiling f2c generated C-code

2005-05-14 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-15 02:45 --- Subject: Bug 17432 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-05-15 02:45:30 Modified files: gcc/testsuite : ChangeLog gcc/fortran: C