This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13447] Another demangler problem with method cv-qualifiers


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]