[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2005-08-28 Thread qiyaoltc at cn dot ibm dot com
--- Additional Comments From qiyaoltc at cn dot ibm dot com 2005-08-29 02:57 --- OK. GCC version: 3.4.3 20050227 (Red Hat 3.4.3-22.1) GNU C Library: stable release version 2.3.4 OS : Red Hat Enterprise Linux AS release 4 (Nahant Update 1) I write a small example named overflow-test.c

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2005-08-28 Thread qiyaoltc at cn dot ibm dot com
--- Additional Comments From qiyaoltc at cn dot ibm dot com 2005-08-29 05:00 --- I add suffix f to the end of float constants at line 5 and line 7, and add option -pedantic, the output from gcc is like this: overflow-test.c:5: warning: floating constant exceeds range of float overflow

[Bug other/23572] New: No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2005-08-26 Thread qiyaoltc at cn dot ibm dot com
: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: qiyaoltc at cn dot ibm dot com CC: gcc-bugs at gcc dot gnu dot org,janis187 at us dot ibm dot com GCC build triplet: ppc64-redhat-linux GCC host triplet: ppc64