This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
template specialisation (bug?)
- To: gcc-help at gcc dot gnu dot org
- Subject: template specialisation (bug?)
- From: Mirko Vogel <mvogel at ux11 dot sp dot cs dot cmu dot edu>
- Date: Mon, 27 Aug 2001 17:38:49 -0400
- MMDF-Warning: Parse error in original version of preceding line at ux11.sp.cs.cmu.edu
- Reply-To: Mirko Vogel <mvogel at cs dot cmu dot edu>
Hello,
I have some template-specialisation-code, wich is compiled by the microsoft
visual c++ compiler, but not by gcc. - that's quite stange, since it seemed
to me, that gcc has a much better template-support. That's the 'original'
template:
template <class parameter_type>
int AddParamDef (char *keywordInit,
char flagInit,
parameter_type *varInit,
const parameter_type & defltInit,
char *descriptionInit,
bool optInit, char *partypenameInit = 0,
int acceptWithoutKeywordOrder = -1)
{
...
}
and that's the specialisation. In the line of the opening bracket of the
function body gcc says: "sorry, not implemented: `component_ref' not
supported by dump_decl".
template <class parameter_type>
int AddParamDef<parameter_type*> (char *keywordInit,
char flagInit,
parameter_type* *varInit,
int defltInit,
char *descriptionInit,
bool optInit, char *partypenameInit = 0,
int acceptWithoutKeywordOrder = -1)
{
...
}
Am I using wrong syntax, or is it really not implemented yet?
Mirko Vogel