public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11343] New: Partial specialization doesn't work with template parameters, that are templates itself
@ 2003-06-27 3:32 duma at gorodok dot net
2003-06-27 6:01 ` [Bug c++/11343] " duma at gorodok dot net
2003-06-27 6:36 ` duma at gorodok dot net
0 siblings, 2 replies; 3+ messages in thread
From: duma at gorodok dot net @ 2003-06-27 3:32 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11343
Summary: Partial specialization doesn't work with template
parameters, that are templates itself
Product: gcc
Version: 3.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: duma at gorodok dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-redhat-linux
GCC host triplet: i686-redhat-linux
GCC target triplet: i686-redhat-linux
Partial specialization doesn't work with template parameters, that are
templates itself
//first test case
template <unsigned Width>
class A
{
public:
unsigned setA();
};
template <unsigned W, template <unsigned> class C>
class B:public C<W>
{
public:
unsigned setB();
};
//next specialization is not accepted
template <unsigned V>
unsigned B<V, A>::setB() {return 11;}
//second test case
template <unsigned Width, unsigned Y>
class C
{
public:
unsigned setA();
};
template <template <unsigned, unsigned> class F, unsigned W, unsigned Y >
class D:public F<W, Y>
{
public:
unsigned setD();
};
//next specialization is not accepted
template <template<unsigned, unsigned> class F, unsigned V>
unsigned D<F, V, 1>::setD() {return 11;}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/11343] Partial specialization doesn't work with template parameters, that are templates itself
2003-06-27 3:32 [Bug c++/11343] New: Partial specialization doesn't work with template parameters, that are templates itself duma at gorodok dot net
@ 2003-06-27 6:01 ` duma at gorodok dot net
2003-06-27 6:36 ` duma at gorodok dot net
1 sibling, 0 replies; 3+ messages in thread
From: duma at gorodok dot net @ 2003-06-27 6:01 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11343
------- Additional Comments From duma at gorodok dot net 2003-06-27 06:01 -------
Subject: Re: New: Partial specialization doesn't work
with template parameters, that are templates itself
On 27 Jun 2003 03:32:18 -0000
"duma at gorodok dot net" <gcc-bugzilla@gcc.gnu.org> wrote:
>PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT*
>gcc-bugs@gcc.gnu.org.
>
>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11343
>
> Summary: Partial specialization doesn't work with
>template
> parameters, that are templates itself
> Product: gcc
> Version: 3.2.1
> Status: UNCONFIRMED
> Severity: normal
> Priority: P2
> Component: c++
> AssignedTo: unassigned at gcc dot gnu dot org
> ReportedBy: duma at gorodok dot net
> CC: gcc-bugs at gcc dot gnu dot org
> GCC build triplet: i686-redhat-linux
> GCC host triplet: i686-redhat-linux
>GCC target triplet: i686-redhat-linux
>
>Partial specialization doesn't work with template parameters,
>that are
>templates itself
>
>//first test case
>template <unsigned Width>
>class A
>{
> public:
>
> unsigned setA();
>};
>template <unsigned W, template <unsigned> class C>
>class B:public C<W>
>{
> public:
> unsigned setB();
>};
>//next specialization is not accepted
>template <unsigned V>
>unsigned B<V, A>::setB() {return 11;}
>
>//second test case
>template <unsigned Width, unsigned Y>
>class C
>{
> public:
>
> unsigned setA();
>};
>template <template <unsigned, unsigned> class F, unsigned W,
>unsigned Y >
>class D:public F<W, Y>
>{
> public:
> unsigned setD();
>};
>//next specialization is not accepted
>template <template<unsigned, unsigned> class F, unsigned V>
>unsigned D<F, V, 1>::setD() {return 11;}
>
>
>
>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/11343] Partial specialization doesn't work with template parameters, that are templates itself
2003-06-27 3:32 [Bug c++/11343] New: Partial specialization doesn't work with template parameters, that are templates itself duma at gorodok dot net
2003-06-27 6:01 ` [Bug c++/11343] " duma at gorodok dot net
@ 2003-06-27 6:36 ` duma at gorodok dot net
1 sibling, 0 replies; 3+ messages in thread
From: duma at gorodok dot net @ 2003-06-27 6:36 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11343
duma at gorodok dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
Version|3.2.1 |unknown
------- Additional Comments From duma at gorodok dot net 2003-06-27 06:36 -------
This came from impossibility to partially specialize methods of class
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-06-27 6:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-27 3:32 [Bug c++/11343] New: Partial specialization doesn't work with template parameters, that are templates itself duma at gorodok dot net
2003-06-27 6:01 ` [Bug c++/11343] " duma at gorodok dot net
2003-06-27 6:36 ` duma at gorodok dot net
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).