diff options
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/error.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 864b6d3..773f364 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2012-02-16 Jason Merrill <jason@redhat.com> + + PR c++/51415 + * error.c (dump_expr): Handle lambda closures specifically. + 2012-02-14 Jason Merrill <jason@redhat.com> * parser.c (cp_parser_explicit_instantiation): Give a warning diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 09c6cae..4ec263b 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -2189,6 +2189,8 @@ dump_expr (tree t, int flags) } } } + if (TREE_TYPE (t) && LAMBDA_TYPE_P (TREE_TYPE (t))) + pp_string (cxx_pp, "<lambda closure object>"); if (TREE_TYPE (t) && EMPTY_CONSTRUCTOR_P (t)) { dump_type (TREE_TYPE (t), 0); |