--- Comment #2 from siegerstein at pochta dot ru 2007-10-27 20:27 ---
Created an attachment (id=14416)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14416&action=view)
bug.cpp
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33852
--- Comment #1 from siegerstein at pochta dot ru 2007-10-27 20:26 ---
Can any body comment this bug?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33852
"óñòðîéñòâî" << std::setw(15) << "óðîâåíü" << std::endl;
return 0;
}
$ g++-4.2.2 bug.cpp -o bug
RESULT:
Mixer__Device_Recording__Active_____Stereo_Current
ChannelAvailable__Source_Source___
--- Comment #3 from siegerstein at pochta dot ru 2007-08-25 10:01 ---
(In reply to comment #2)
> (float) 5 / 8
> Means the same as:
> ((float)5) / 8
>
> But while both:
> (float) (5 / 8)
> and
> float (5 / 8)
> Are doing the division in integer.
>
&g
--- Comment #1 from siegerstein at pochta dot ru 2007-08-25 05:04 ---
Check this.
#include
int main() {
std::cout << "*** to float " << std::endl;
std::cout << 8 / 5 << std::endl;
std::cout << (float) 8 / 5
eturn 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: