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:
parent
1e3eacc7cb
commit
d5aa2cf0de
@ -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 .*.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user