public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5369: g++ 3.0.1 fails to honor a template member friend declaration
@ 2002-12-19  8:12 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-12-19  8:12 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, lerdsuwa, nobody, sebor

Synopsis: g++ 3.0.1 fails to honor a template member friend declaration

Responsible-Changed-From-To: unassigned->lerdsuwa
Responsible-Changed-By: lerdsuwa
Responsible-Changed-When: Thu Dec 19 08:12:42 2002
Responsible-Changed-Why:
    Relate to PR7641.

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


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

* Re: c++/5369: g++ 3.0.1 fails to honor a template member friend declaration
@ 2002-06-08  7:57 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-06-08  7:57 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, sebor

Synopsis: g++ 3.0.1 fails to honor a template member friend declaration

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Jun  8 07:57:22 2002
State-Changed-Why:
    Confirmed.

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


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

* c++/5369: g++ 3.0.1 fails to honor a template member friend declaration
@ 2002-01-13 13:36 sebor
  0 siblings, 0 replies; 3+ messages in thread
From: sebor @ 2002-01-13 13:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5369
>Category:       c++
>Synopsis:       g++ 3.0.1 fails to honor a template member friend declaration
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 13 13:36:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     sebor@roguewave.com
>Release:        3.0.1
>Organization:
>Environment:

>Description:
I believe this program is well-formed. It fails to compile
with 3.0.1.

Regards
Martin

$ cat t.cpp ;  g++ t.cpp
template <class T>
struct S
{
    int foo () {
        return S<int>::bar ();
    }

private:

    template <class U>
    friend int S<U>::foo ();

    static int bar () { return 0; }
};

int main ()
{
    S<char>().foo ();
}
t.cpp: In member function `int S<T>::foo() [with T = char]':
t.cpp:18:   instantiated from here
t.cpp:13: `static int S<T>::bar() [with T = int]' is private
t.cpp:5: within this context
>How-To-Repeat:

>Fix:

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


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

end of thread, other threads:[~2002-12-19 16:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-19  8:12 c++/5369: g++ 3.0.1 fails to honor a template member friend declaration lerdsuwa
  -- strict thread matches above, loose matches on Subject: below --
2002-06-08  7:57 lerdsuwa
2002-01-13 13:36 sebor

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