* error.c (reinit_cxx_pp): Initialize cxx_pp->enclosing_scope
to current_function_decl rather than 0.
From-SVN: r129683
2007-10-27 Jakub Jelinek <jakub@redhat.com>
+ * error.c (reinit_cxx_pp): Initialize cxx_pp->enclosing_scope
+ to current_function_decl rather than 0.
+
PR c++/33844
* cxx-pretty-print.c (pp_cxx_pm_expression) <case MEMBER_REF>: Print
->* rather than .*.
pp_base (cxx_pp)->padding = pp_none;
pp_indentation (cxx_pp) = 0;
pp_needs_newline (cxx_pp) = false;
- cxx_pp->enclosing_scope = 0;
+ cxx_pp->enclosing_scope = current_function_decl;
}