[c++] Another question about demangler output

Carlo Wood carlo@alinoe.com
Sun Dec 7 15:41:00 GMT 2003


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>



More information about the Gcc mailing list