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
This commit is contained in:
parent
515756b990
commit
a11e05f440
|
@ -1,5 +1,8 @@
|
|||
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:
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
// PR c++/50059
|
||||
|
||||
int i;
|
||||
struct A { };
|
||||
void f(A);
|
||||
void g()
|
||||
{
|
||||
f(i = 0); // { dg-error "i = 0" }
|
||||
}
|
Loading…
Reference in New Issue