* error.c (dump_expr) <case AGGR_INIT_EXPR>: Pass true as last
argument to dump_aggr_init_expr_args instead of false.
* g++.dg/parse/error30.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126582
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-07-12 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/30854
+ * error.c (dump_expr) <case AGGR_INIT_EXPR>: Pass true as last
+ argument to dump_aggr_init_expr_args instead of false.
+
2007-07-11 Douglas Gregor <doug.gregor@gmail.com>
* typeck.c (comptypes): When USE_CANONICAL_TYPES, use the
else
dump_expr (AGGR_INIT_EXPR_FN (t), 0);
}
- dump_aggr_init_expr_args (t, flags, false);
+ dump_aggr_init_expr_args (t, flags, true);
break;
case CALL_EXPR:
+2007-07-12 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/30854
+ * g++.dg/parse/error30.C: New test.
+
2007-07-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/29804
--- /dev/null
+// PR c++/30854
+// { dg-do compile }
+
+struct A
+{
+ A();
+ A(int);
+};
+
+A a = -A(); // { dg-error "no match for.*operator-.*in.*-A\\(\\)" }
+A b = -A(5); // { dg-error "no match for.*operator-.*in.*-A\\(5\\)" }