public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10854: "XXX is private within this context" when trying to specialize private member template
@ 2003-05-19  9:26 derrick
  0 siblings, 0 replies; 2+ messages in thread
From: derrick @ 2003-05-19  9:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10854
>Category:       c++
>Synopsis:       "XXX is private within this context" when trying to specialize private member template
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon May 19 09:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Derrick Bass
>Release:        gcc-3.3
>Organization:
>Environment:

>Description:
When this code is compiled:
class X {
private:
  template<bool T>
  struct Y;
};

template<>
struct X::Y<false> {
};

gcc 3.3 gives the following error:
privatetest.cc:4: error: `template<bool T> struct X::Y' is private
privatetest.cc:8: error: within this context

Previous versions of gcc accept the code (well, 3.1 and 3.2.2 definitely).
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c++/10854: "XXX is private within this context" when trying to specialize private member template
@ 2003-05-19  9:56 giovannibajo
  0 siblings, 0 replies; 2+ messages in thread
From: giovannibajo @ 2003-05-19  9:56 UTC (permalink / raw)
  To: derrick, gcc-bugs, gcc-prs, nobody

Synopsis: "XXX is private within this context" when trying to specialize private member template

State-Changed-From-To: open->closed
State-Changed-By: bajo
State-Changed-When: Mon May 19 09:56:33 2003
State-Changed-Why:
    Duplicate of c++/10849.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10854


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

end of thread, other threads:[~2003-05-19  9:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-19  9:26 c++/10854: "XXX is private within this context" when trying to specialize private member template derrick
2003-05-19  9:56 giovannibajo

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).