[loic.leguyader@laposte.net: Bug#105223: GCC failed to compile this programme]
reassign 105223 gcc
thanks
Good spotting, and the english is fine. Only thing that was wrong was
it was against "base" instead of gcc, but that's fixed with this mesage.
----- Forwarded message from loic <loic.leguyader@laposte.net> -----
From: loic <loic.leguyader@laposte.net>
Subject: Bug#105223: GCC failed to compile this programme
To: Debian Bug Tracking System <submit@bugs.debian.org>
Package: base
Version: N/A; reported 2001-07-14
Severity: important
The programme is:
#include<stdio.h>
void retenue_f(unsigned long a, unsigned long b, unsigned long
c)
{
unsigned long f;
unsigned long long tmp;
printf("%lu, %lu, %lu\n", a, b, c);
tmp = c+b;
f = tmp%10;
tmp = (unsigned long long)f + a;
while(tmp >= 10)
;
}
int main(void)
{
unsigned long r=1, s=2, t=3;
retenue_f(r, s, t);
return 0;
}
--------------------------
When you compile it with gcc -Wall -O2 -o bug bug.c and then when you
execute it, you have 1, 0, 2 displayed instead of 1, 2, 3. That mean
the b argument of the function retenue_f is 0 instead of 2.
I can't reduce the programme more to obtain the bug, so all the ligne
were required. Note that the -O2 flag is also required.
I've tell some pepole to try this programme and they obtain the bug
too. Some of them use woody.
PS:please excuse my bad english speaking cause I'm french man.
-- System Information
Debian Release: 2.2
Architecture: i386
Kernel: Linux fridu 2.2.18pre21 #4 Fri Mar 30 17:55:41 CEST 2001 i686
----- End forwarded message -----
Reply to: