[Bug c++/43393] integral promotion of long bit-fields broken in g++ 4.4.0

2010-03-17 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-03-17 10:47 --- From [3] ISO/IEC 14882-1998 [conv.prom] An rvalue for an integral bit-field can be converted to an rvalue of type int if int can represent all the values of the bit-field; otherwise, it can be converted to unsigned

[Bug c++/43393] integral promotion of long bit-fields broken in g++ 4.4.0

2010-03-17 Thread vsoni at tilera dot com
--- Comment #3 from vsoni at tilera dot com 2010-03-17 19:33 --- (In reply to comment #2) I read that t.f promotes to int. And that is exactly what the C++ frontend does: That's plausible, but the standard, especially it's intent, is unclear I think. I see three plausible

[Bug c++/43393] integral promotion of long bit-fields broken in g++ 4.4.0

2010-03-16 Thread vsoni at tilera dot com
--- Comment #1 from vsoni at tilera dot com 2010-03-16 17:55 --- Created an attachment (id=20118) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20118action=view) preprocessed test -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43393