re PR c++/44486 (missing space in __PRETTY_FUNCTION__ expansion in anonymous namespace)

2010-06-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR c++/44486
cp/	
	* error.c (dump_decl): Better wording for anonymous namespace.
testsuite/	
	* g++.dg/pr44486.C: New.

From-SVN: r160877
parent 7c1ab287
2010-06-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/44486
* error.c (dump_decl): Better wording for anonymous namespace.
2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
* class.c (build_vtbl_initializer): Adjust computation of new_position
......
......@@ -946,7 +946,7 @@ dump_decl (tree t, int flags)
dump_scope (CP_DECL_CONTEXT (t), flags);
flags &= ~TFF_UNQUALIFIED_NAME;
if (DECL_NAME (t) == NULL_TREE)
pp_string (cxx_pp, M_("<unnamed>"));
pp_cxx_ws_string (cxx_pp, M_("{anonymous}"));
else
pp_cxx_tree_identifier (cxx_pp, DECL_NAME (t));
}
......
2010-06-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/44486
* g++.dg/pr44486.C: New.
2010-06-16 DJ Delorie <dj@redhat.com>
* gcc.target/i386/volatile-bitfields-1.c: New.
......
// PR c++/44486 missing space in __PRETTY_FUNCTION__ expansion in anonymous namespace
// { dg-do compile }
// { dg-options "" }
struct S { };
namespace { S f() { const char * s = __PRETTY_FUNCTION__; return S(); } }
int main() { f(); }
// { dg-final { scan-assembler "S \{anonymous\}::f" } }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment