PR c++/27716
* typeck.c (build_modify_expr): Test arguments for error_operand_p.
* g++.dg/other/assign1.C: New test.
From-SVN: r113991
+2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/27716
+ * typeck.c (build_modify_expr): Test arguments for error_operand_p.
+
2006-05-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/27582
bool plain_assign = (modifycode == NOP_EXPR);
/* Avoid duplicate error messages from operands that had errors. */
- if (lhs == error_mark_node || rhs == error_mark_node)
+ if (error_operand_p (lhs) || error_operand_p (rhs))
return error_mark_node;
/* Handle control structure constructs used as "lvalues". */
2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+ PR c++/27716
+ * g++.dg/other/assign1.C: New test.
+
PR c++/27451
* g++.dg/ext/asm9.C: New test.
--- /dev/null
+// PR c++/27716
+// { dg-do compile }
+
+int foo()
+{
+ return i ""= i; // { dg-error "not declared|string constant" }
+}