diff options
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/error.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index db335c8..b967735 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2012-08-10 Richard Guenther <rguenther@suse.de> + + * error.c (dump_expr): Handle anonymous SSA names. + 2012-08-07 Steven Bosscher <steven@gcc.gnu.org> * error.c (print_instantiation_context): Pretty-print a newline before diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 17646e2..40f96d3 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1803,7 +1803,8 @@ dump_expr (tree t, int flags) break; case SSA_NAME: - if (!DECL_ARTIFICIAL (SSA_NAME_VAR (t))) + if (SSA_NAME_VAR (t) + && !DECL_ARTIFICIAL (SSA_NAME_VAR (t))) dump_expr (SSA_NAME_VAR (t), flags); else pp_cxx_ws_string (cxx_pp, M_("<unknown>")); |