[Bug c/42799] New: Variable unexpectedly set to 0 because a scanf()

2010-01-19 Thread adriyetichaves at gmail dot com
- Summary: Variable unexpectedly set to 0 because a scanf() Product: gcc Version: 4.4.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org Repo

[Bug c/42799] Variable unexpectedly set to 0 because a scanf()

2010-01-19 Thread adriyetichaves at gmail dot com
--- Comment #1 from adriyetichaves at gmail dot com 2010-01-19 09:59 --- I've simplified the code, step by step (though that removing functions would change the result), but this simple code still gets the same error: #include int main(void) { unsigned short int q_num, ida

[Bug c/42799] Variable unexpectedly set to 0 because a scanf()

2010-01-19 Thread adriyetichaves at gmail dot com
--- Comment #2 from adriyetichaves at gmail dot com 2010-01-19 10:04 --- Same code compiled in other compiler (Turbo C++) works. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42799