re PR c++/56235 (Bogus "error: invalid conversion from ‘unsigned char’ to ‘B::Mode...
authorJason Merrill <jason@redhat.com>
Thu, 7 Feb 2013 16:32:28 +0000 (11:32 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 7 Feb 2013 16:32:28 +0000 (11:32 -0500)
commit702f9fe53516f574c149d7638b977d84b2861e9b
tree3469086715ba20d9a8b5ecd53f08edb601653419
parent54353978a4ba9b8c4d7c5b721b2daaca1b1c8975
re PR c++/56235 (Bogus "error: invalid conversion from ‘unsigned char’ to ‘B::Mode’ [-fpermissive]")

PR c++/56235
* method.c (do_build_copy_constructor): Don't bother turning
scalars from lvalues to xvalues.
(do_build_copy_assign): Likewise.

From-SVN: r195854
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/g++.dg/init/bitfield4.C [new file with mode: 0644]