This is the mail archive of the gcc@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]

Re: [c++] Another question about demangler output


On Sun, Dec 07, 2003 at 05:24:46AM +0100, Gabriel Dos Reis wrote:
> The point is this.  "typeof" is a GNU/C++ extension.  Its use in a
> function declaration should be mangled differently from any standard
> C++ construction.  After all, the ABI has provided hook for vendor
> extension. 

At most that would be the case when there is a dependency on
a template parameter - and in the example there is none.
So, the "typeof" disappears and the resulting function will
be equivalent to the case where a typedef had been used,
or nothing at all if that would have been possible (and IS
possible for less complex types than int (*)()).

-- 
Carlo Wood <carlo@alinoe.com>


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