c++/5004: Full specialisation of member templates failing
benko@sztaki.hu
benko@sztaki.hu
Tue Dec 4 01:36:00 GMT 2001
>Number: 5004
>Category: c++
>Synopsis: Full specialisation of member templates failing
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 04 01:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Benko Pal
>Release: 3.0.2
>Organization:
>Environment:
SuSE linux 7.1, i686
>Description:
The attached program tries to specialise a member class
template in (hopefully) all possible ways. Partial
specialisations succeed, but full specialisation succeeds
only when the enclosing class is non-templated, and the
specialisation is declared outside of the enclosing class.
arta:~/c/proba$ /gml/shared/gcc-3.0.2/bin/g++ -c spectemplmem.cc
spectemplmem.cc:12: explicit specialization in non-namespace scope `struct
a<T>'
spectemplmem.cc:12: enclosing class templates are not explicitly specialized
spectemplmem.cc:14: template parameters not used in partial specialization:
spectemplmem.cc:14: `T'
spectemplmem.cc:24: enclosing class templates are not explicitly specialized
spectemplmem.cc:26: template parameters not used in partial specialization:
spectemplmem.cc:26: `T'
spectemplmem.cc:38: explicit specialization in non-namespace scope `struct c'
zsh: exit 1 /gml/shared/gcc-3.0.2/bin/g++ -c spectemplmem.cc
arta:~/c/proba$
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="spectemplmem.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="spectemplmem.cc"
dGVtcGxhdGUgPHR5cGVuYW1lIFQ+CnN0cnVjdCBhCnsKICB0ZW1wbGF0ZSA8dHlwZW5hbWUgVT4K
ICBzdHJ1Y3QgYgogIHt9OwoKICB0ZW1wbGF0ZSA8dHlwZW5hbWUgVz4KICBzdHJ1Y3QgYjxiPFc+
ID4KICB7fTsKCiAgdGVtcGxhdGUgPD4KICBzdHJ1Y3QgYjx2b2lkPiAKICB7fTsKfTsKCnRlbXBs
YXRlID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