This is the mail archive of the gcc-prs@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]
Other format: [Raw text]

c++/5094: partial specialisation cannot be friend??



>Number:         5094
>Category:       c++
>Synopsis:       partial specialisation cannot be friend??
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 12 07:26:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Benko Pal
>Release:        3.0.2
>Organization:
>Environment:
SuSE 7.1, i686
>Description:
The attached file tries several configuration of friend declaration.
Some of them fails; I think these should behave identically to those
not failing.

arta:~/c/proba$ /gml/shared/gcc-3.0.2/bin/g++ -c specfriend.cc 
specfriend.cc:42: partial specialization `c<d<T> >' declared `friend'
specfriend.cc:55: partial specialization `d<c<T> >' declared `friend'
specfriend.cc:59: expected 1 levels of template parms for `class b::inner<I>', 
   got 2
specfriend.cc:71: partial specialization `d<c<T> >' declared `friend'
zsh: exit 1     /gml/shared/gcc-3.0.2/bin/g++ -c specfriend.cc
arta:~/c/proba$ 
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="specfriend.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="specfriend.cc"

c3RydWN0IGEKewogIGNsYXNzIGlubmVyCiAgewogICAgZnJpZW5kIGNsYXNzIGE7CiAgfTsKfTsK
CnN0cnVjdCBiCnsKICB0ZW1wbGF0ZSA8aW50IEk+CiAgY2xhc3MgaW5uZXIKICB7CiAgICBmcmll
bmQgY2xhc3MgYjsKICB9Owp9OwoKdGVtcGxhdGUgPHR5cGVuYW1lIFQ+CnN0cnVjdCBjCnsKICBj
bGFzcyBpbm5lcgogIHsKICAgIGZyaWVuZCBjbGFzcyBjOwogIH07Cn07Cgp0ZW1wbGF0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