public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: benko@sztaki.hu To: gcc-gnats@gcc.gnu.org Subject: c++/5094: partial specialisation cannot be friend?? Date: Wed, 12 Dec 2001 07:26:00 -0000 [thread overview] Message-ID: <20011212151956.14267.qmail@sources.redhat.com> (raw) >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 bGFzcyBpbm5lcgogIHsKICAgIGZyaWVuZCBjbGFzcyBjOwogIH07Cn07Cgp0ZW1wbGF0ZSA8dHlw ZW5hbWUgVD4Kc3RydWN0IGQKewogIHRlbXBsYXRlIDxpbnQgST4KICBjbGFzcyBpbm5lcgogIHsK ICAgIGZyaWVuZCBjbGFzcyBkOwogIH07Cn07Cgp0ZW1wbGF0ZSA8dHlwZW5hbWUgVD4Kc3RydWN0 IGM8ZDxUPiA+CnsKICBjbGFzcyBpbm5lcgogIHsKICAgIGZyaWVuZCBjbGFzcyBjOwogIH07Cgog IHRlbXBsYXRlIDx0eXBlbmFtZSBVPgogIGZyaWVuZCBjbGFzcyBjOwp9OwoKdGVtcGxhdGUgPHR5 cGVuYW1lIFQ+CnN0cnVjdCBkPGM8VD4gPgp7CiAgdGVtcGxhdGUgPGludCBJPgogIGNsYXNzIGlu bmVyCiAgewogICAgZnJpZW5kIGNsYXNzIGQ7CiAgfTsKCiAgdGVtcGxhdGUgPGludCBJPgogIGZy aWVuZCBjbGFzcyBiOjppbm5lcjsKfTsKCnRlbXBsYXRlIDw+CnN0cnVjdCBjPGludD4KewogIGNs YXNzIGlubmVyCiAgewogICAgZnJpZW5kIGNsYXNzIGM7CiAgfTsKCiAgdGVtcGxhdGUgPHR5cGVu YW1lIFQ+CiAgZnJpZW5kIGNsYXNzIGQ8YzxUPiA+Owp9OwoKdGVtcGxhdGUgPD4Kc3RydWN0IGQ8 aW50Pgp7CiAgdGVtcGxhdGUgPGludCBJPgogIGNsYXNzIGlubmVyCiAgewogICAgZnJpZW5kIGNs YXNzIGQ7CiAgfTsKCiAgZnJpZW5kIGNsYXNzIGM8ZD47Cn07Cg==
next reply other threads:[~2001-12-12 15:26 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-12-12 7:26 benko [this message] 2001-12-12 19:58 rodrigc 2001-12-12 20:06 rodrigc 2001-12-12 20:16 Martin Sebor 2001-12-14 0:16 Pal Benko 2002-12-19 7:36 lerdsuwa
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20011212151956.14267.qmail@sources.redhat.com \ --to=benko@sztaki.hu \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).