Commit a11e05f4 by Jason Merrill Committed by Jason Merrill

re PR c++/50059 ([C++0x] Broken error message with __builtin_remquo & constexpr)

	PR c++/50059
	* error.c (dump_expr): Handle MODIFY_EXPR properly.

From-SVN: r177735
parent 515756b9
2011-08-13 Jason Merrill <jason@redhat.com>
PR c++/50059
* error.c (dump_expr): Handle MODIFY_EXPR properly.
* decl.c (grok_reference_init): Handle constexpr here.
* call.c (initialize_reference): Not here.
......
......@@ -1868,6 +1868,10 @@ dump_expr (tree t, int flags)
case INIT_EXPR:
case MODIFY_EXPR:
dump_binary_op (assignment_operator_name_info[(int)NOP_EXPR].name,
t, flags);
break;
case PLUS_EXPR:
case MINUS_EXPR:
case MULT_EXPR:
......
2011-08-13 Jason Merrill <jason@redhat.com>
PR c++/50059
* g++.dg/diagnostic/expr1.C: New.
2011-08-12 David Li <davidxl@google.com>
* g++.dg/abi/vbase15.C: New test.
......
// PR c++/50059
int i;
struct A { };
void f(A);
void g()
{
f(i = 0); // { dg-error "i = 0" }
}
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