re PR libstdc++/13045 (Demangler does demangle floating values.)
authorCarlo Wood <carlo@alinoe.com>
Fri, 5 Dec 2003 02:40:53 +0000 (02:40 +0000)
committerCarlo Wood <carlo@gcc.gnu.org>
Fri, 5 Dec 2003 02:40:53 +0000 (02:40 +0000)
commit69f73bd39537419efe9d74c63c84e3292c9f4a15
tree3580ef8e6b68df46d03fc5518c47c464da930533
parentefdba735bef6fc3c86df8e37bdfd17525f32ca8c
re PR libstdc++/13045 (Demangler does demangle floating values.)

PR libstdc++/13045
* bits/demangle.h
namespace __gnu_cxx::demangler
(enum substitution_nt): Removed trailing comma.
(implementation_details): Added.
(session<Allocator>::M_implementation_details): Added.
(session<Allocator>::session): Pass implementation_details.
(session<Allocator>::decode_encoding): Same.
(session<Allocator>::decode_real): Added.
(_GLIBCXX_DEMANGLER_STYLE_VOID _GLIBCXX_DEMANGLER_STYLE_LITERAL
_GLIBCXX_DEMANGLER_STYLE_LITERAL_INT
_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Replaced with
implementation_details equivalent.
(session<Allocator>::decode_expression):
Use M_implementation_details instead of macros. Add extra parentheses
around 'larger than' operator in expressions in template arguments.
(session<Allocator>::decode_bare_function_type): Idem.
(session<Allocator>::decode_literal):
Idem, and call decode_real for floating literals.
(session<Allocator>::decode_type_with_postfix): Put the postfix
of the return type of (member) functions after the function
instead of after the return type.  Also, put a space after the
prefix of qualified function pointers: "int (* const<space>".
* src/demangle.cc: include most dependent header file first.
* testsuite/demangle/regression/cw-16.cc: Updated two
and added three tests.

From-SVN: r74304
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/demangle.h
libstdc++-v3/src/demangle.cc
libstdc++-v3/testsuite/demangle/regression/cw-16.cc