error.c (reinit_cxx_pp): Initialize cxx_pp->enclosing_scope to current_function_decl rather than 0.

* error.c (reinit_cxx_pp): Initialize cxx_pp->enclosing_scope
	to current_function_decl rather than 0.

From-SVN: r129683
This commit is contained in:
Jakub Jelinek 2007-10-27 17:56:49 +02:00 committed by Jakub Jelinek
parent 1e3eacc7cb
commit d5aa2cf0de
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
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 .*.

View File

@ -2107,7 +2107,7 @@ reinit_cxx_pp (void)
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;
}