Commit a37cbb81 authored by jason's avatar jason
Browse files

PR c++/49117

	* call.c (perform_implicit_conversion_flags): Print source type as
	well as expression.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175044 138bc75d-0d04-0410-961f-82ee72b054a4
parent 0277b639
2011-06-14 Jason Merrill <jason@redhat.com>
PR c++/49117
* call.c (perform_implicit_conversion_flags): Print source type as
well as expression.
PR c++/49389
* typeck2.c (build_m_component_ref): Preserve rvalueness.
......
......@@ -8296,7 +8296,8 @@ perform_implicit_conversion_flags (tree type, tree expr, tsubst_flags_t complain
else if (invalid_nonstatic_memfn_p (expr, complain))
/* We gave an error. */;
else
error ("could not convert %qE to %qT", expr, type);
error ("could not convert %qE from %qT to %qT", expr,
TREE_TYPE (expr), type);
}
expr = error_mark_node;
}
......
2011-06-14 Jason Merrill <jason@redhat.com>
* g++.dg/other/error23.C: Adjust error message.
* g++.dg/other/error32.C: Likewise.
PR c++/49389
* g++.dg/cpp0x/rv-dotstar.C: New.
......
......@@ -2,4 +2,4 @@
// { dg-do compile }
int v __attribute ((vector_size (8)));
bool b = !(v - v); // { dg-error "could not convert .\\(__vector.2. int\\)\\{0, 0\\}. to .bool.|in argument to unary" }
bool b = !(v - v); // { dg-error "could not convert .\\(__vector.2. int\\)\\{0, 0\\}. from .__vector.2. int. to .bool.|in argument to unary" }
......@@ -3,6 +3,6 @@
void foo()
{
if (throw 0) // { dg-error "could not convert .\\<throw-expression\\>. to .bool." }
if (throw 0) // { dg-error "could not convert .\\<throw-expression\\>. from .void. to .bool." }
;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment