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

template specialisation (bug?)


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


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