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
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
|
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
Comment by Allan McRae (Allan) -
Sunday, 08 November 2009, 08:39 GMT
So bad code does not work. What a surprise....