This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13447] Another demangler problem with method cv-qualifiers
- From: "ian at wasabisystems dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Dec 2003 18:28:43 -0000
- Subject: [Bug c++/13447] Another demangler problem with method cv-qualifiers
- References: <20031219155953.13447.drow@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ian at wasabisystems dot com 2003-12-19 18:28 -------
Subject: Re: New: Another demangler problem with method cv-qualifiers
Daniel Jacobowitz <drow@mvista.com> writes:
> It came from Michael Chastain's list of mangled names. Here's another
> example which shows the same problem however:
How do you handle
class C { public: template<typename i> int (*f() const)(); };
int foo(const C c) { return (*c.f<int>())(); }
?
The mangled name is _ZNK1C1fIiEEPFivEv, which currently demangles as
int (*C::f<int>() const)()
That more or less corresponds to the declaration. However, I don't
know whether this is correct C++.
Ian
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13447