FS#17057 - uninitialized bool error in GCC 4.4.2

Attached to Project: Arch Linux
Opened by Liu Dongiao (liudongmiao) - Sunday, 08 November 2009, 07:06 GMT
Last edited by Allan McRae (Allan) - Sunday, 08 November 2009, 08:39 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When bool is uninitialezed, the result will be wrong.

Additional info:
gcc 4.4.2-2 (extra)
gcc 4.4.2-3 (testing)

Steps to reproduce:
#include <stdio.h>
#include <stdbool.h>

int main() {
bool num;
printf("num=%d\n", num);
return 0;
}
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 08 November 2009, 08:39 GMT
Reason for closing:  Not a bug
Comment by Allan McRae (Allan) - Sunday, 08 November 2009, 08:39 GMT
So bad code does not work. What a surprise....

Loading...