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


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