* call.c (convert_like_real): Do full decay_conversion for ck_rvalue.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155913
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-01-14 Jason Merrill <jason@redhat.com>
+
+ PR c++/42655
+ * call.c (convert_like_real): Do full decay_conversion for ck_rvalue.
+
2010-01-13 Dodji Seketeli <dodji@redhat.com>
PR c++/42634
switch (convs->kind)
{
case ck_rvalue:
- expr = convert_bitfield_to_declared_type (expr);
+ expr = decay_conversion (expr);
if (! MAYBE_CLASS_TYPE_P (totype))
return expr;
/* Else fall through. */
+2010-01-14 Jason Merrill <jason@redhat.com>
+
+ PR c++/42655
+ * g++.dg/overload/rvalue1.C: New.
+
2010-01-14 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/42706
--- /dev/null
+// PR c++/42655
+
+void unused(const bool &) { }
+
+int main() {
+ volatile bool x = false;
+ unused(!!x); // type of "!x" is bool
+ unused(!x); // type of "!x" is bool
+}
+