This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33182] New: ()
- From: "siegerstein at pochta dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2007 03:07:02 -0000
- Subject: [Bug c++/33182] New: ()
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
1: #include <iostream>
2:
3: int main() {
4: std::cout << (float) 5 / 8 << std::endl; // 0.625
5: std::cout << (float) (5 / 8) << std::endl; // 0
6: std::cout << float (5 / 8) << std::endl; // 0
7:
8: return 0;
9: }
Work only line 4. Why?
--
Summary: ()
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: siegerstein at pochta dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33182