re PR c++/11762 (namespace aliasing ICE in warn_extern_redeclared_static)
commita2a9e21c333495766fc733fedbf1821b9b333840
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Sun, 7 Sep 2003 18:52:53 +0000 (7 18:52 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sun, 7 Sep 2003 18:52:53 +0000 (7 18:52 +0000)
treea053051804681d6afd59965f85bf34dfc364a70f
parent1ab237dfa3b2afa84b952ac457eb01df96638757
re PR c++/11762 (namespace aliasing ICE in warn_extern_redeclared_static)

* c-pretty-print.h (pp_c_left_brace): Declare.
(pp_c_right_brace): Likewise.
* c-pretty-print.c (pp_c_left_brace): Now a function
(pp_c_right_brace): Likewise.

cp/
PR c++/11762
* error.c (dump_decl): Handle namespace-alias-definition.
* decl.c (warn_extern_redeclared_static): There is no point in
checking changes in storage class specifier for a namespace
declaration.
(duplicate_decls): Tidy diagnostic message.
* cxx-pretty-print.c (pp_cxx_left_brace): New macro.
(pp_cxx_right_brace): Likewise.
(pp_cxx_original_namespace_definition): New function.
(pp_cxx_namespace_alias_definition): Likewise.
(pp_cxx_declaration): Use them.  Handle NAMESPACE_DECLs.

From-SVN: r71175
gcc/ChangeLog
gcc/c-pretty-print.c
gcc/c-pretty-print.h
gcc/cp/ChangeLog
gcc/cp/cxx-pretty-print.c
gcc/cp/decl.c
gcc/cp/error.c
gcc/testsuite/g++.dg/lookup/struct1.C