------- Comment #4 from redi at gcc dot gnu dot org 2010-04-06 11:38 ------- Noone's taking the address of a bitfield, the stnadard specifically says "The address-of operator & shall not be applied to a bit-field, so there are no pointers to bit-fields."
What happens is the same as: double d = 0; const int& i = d; a temporary is created and the reference bound to it. And this definitely isn't new in C++0x! The reference for C++03 should be 9.6p3 rather than p2 -- redi at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[C++0x] Can't take a const- |Can't take a const-ref to a |ref to a bit field |bit field http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43663