[Bug c++/43663] Can't take a const-ref to a bit field

james.dennett at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun May 15 12:42:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43663

--- Comment #7 from James Dennett <james.dennett at gmail dot com> 2011-05-15 11:55:47 UTC ---
Unsurprisingly the quick hack isn't really good enough -- it'll happily bind a
non-const reference to a temporary initialized from a bitfield.  (...and I
guess that's why we have tests, and code reviews.)



More information about the Gcc-bugs mailing list