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: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Dec 2003 18:50:38 -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 giovannibajo at libero dot it 2003-12-19 18:50 -------
Your code is:
class C {
public:
template <typename i>
int (*f())() const;
};
I'm very positive that this is ill-formed. If you want to say that it's a
pointer to a const function, you should say:
int (*f() const)();
If you want to say that the return type is const (which is of course
meaningless), you should say:
const int (*f())();
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13447