public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* template peculiarity
@ 2002-01-06  3:49 Andrey R. Urazov
  0 siblings, 0 replies; 2+ messages in thread
From: Andrey R. Urazov @ 2002-01-06  3:49 UTC (permalink / raw)
  To: gcc-help ML

[-- Attachment #1: Type: text/plain, Size: 933 bytes --]

Hello everybody,

I've faced a problem using gcc 3.0. I tried to define partial template
specialization for template member-function in a template class and
failed with that. Being given the following piece of code:

struct Policy {};
    
struct B {
    template<class Q, class W> int getval();
    template<class Q> int getval<Q, Policy>();
};

gcc swears like that:

template_test.cpp:5: sorry, not implemented: `component_ref' not
supported by 
   dump_decl
template_test.cpp:5: partial specialization `<declaration error><Q, Policy>' of 
   function template

Is this ok and should I give up trying to use partial template
specialization for template member function? Or maybe there is a
solution of the problem.

                        Yours sincerely, Andrey Urazov
-- 
MMM-MM!!  So THIS is BIO-NEBULATION! 
--
Sunday, January 06, 2002, 17:41:23 +0600 - Andrey R. Urazov (mailto:coola@ngs.ru)


[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: template peculiarity
@ 2002-01-06 16:47 Paolo Carlini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Carlini @ 2002-01-06 16:47 UTC (permalink / raw)
  To: coola; +Cc: gcc-help

>Is this ok and should I give up trying to use partial template
>specialization for template member function? Or maybe there is a
>solution of the problem.

Definitely the first one!

Cheers,
Paolo.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-07  0:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-06  3:49 template peculiarity Andrey R. Urazov
2002-01-06 16:47 Paolo Carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).