public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9030: [3.4 regression] Template friends and access to local classes
@ 2002-12-23 21:56 Kriang Lerdsuwanakij
0 siblings, 0 replies; 3+ messages in thread
From: Kriang Lerdsuwanakij @ 2002-12-23 21:56 UTC (permalink / raw)
To: lerdsuwa; +Cc: gcc-prs
The following reply was made to PR c++/9030; it has been noted by GNATS.
From: Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, lerdsuwa@gcc.gnu.org,
bangerth@ticam.utexas.edu, gcc-bugs@gcc.gnu.org
Cc:
Subject: Re: c++/9030: [3.4 regression] Template friends and access to local
classes
Date: Tue, 24 Dec 2002 12:57:11 +0700
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9030
Patch submitted.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/9030: [3.4 regression] Template friends and access to local classes
@ 2002-12-21 1:23 lerdsuwa
0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-12-21 1:23 UTC (permalink / raw)
To: bangerth, gcc-bugs, gcc-prs, lerdsuwa, nobody
Synopsis: [3.4 regression] Template friends and access to local classes
Responsible-Changed-From-To: unassigned->lerdsuwa
Responsible-Changed-By: lerdsuwa
Responsible-Changed-When: Sat Dec 21 01:23:41 2002
Responsible-Changed-Why:
My fault
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Dec 21 01:23:41 2002
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9030
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/9030: [3.4 regression] Template friends and access to local classes
@ 2002-12-20 12:26 bangerth
0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2002-12-20 12:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 9030
>Category: c++
>Synopsis: [3.4 regression] Template friends and access to local classes
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 20 12:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
Today's CVS.
>Description:
The following used to compile (and does so with icc7, for
example, in strict ANSI conformance mode):
---------------------------
template <class T> class Outer {
private:
struct Inner {};
template <class T_>
friend typename Outer<T_>::Inner foo ();
};
template <class T>
typename Outer<T>::Inner
foo () {
return Outer<T>::Inner();
}
void f() {
foo<int>();
}
-----------------------------
It fails since yesterday:
tmp/g> /home/bangerth/bin/gcc-3.4-CVS/bin/c++ -c x.cc
x.cc: In function `void f()':
x.cc:3: error: `struct Outer<int>::Inner' is private
x.cc:16: error: within this context
x.cc:3: error: `struct Outer<int>::Inner' is private
x.cc:16: error: within this context
x.cc:3: error: `struct Outer<int>::Inner' is private
x.cc:11: error: within this context
x.cc: At global scope:
x.cc: In instantiation of `typename Outer<T>::Inner foo() [with T = int]':
x.cc:16: instantiated from here
x.cc:3: error: `struct Outer<int>::Inner' is private
x.cc:11: error: within this context
x.cc:3: error: `struct Outer<int>::Inner' is private
x.cc:11: error: within this context
Kriang, I think that one of your patches yesterday must
have caused this, since our nightly builds went fine
until this night. Could you take a look at it?
Thanks
Wolfgang
>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-24 5:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-23 21:56 c++/9030: [3.4 regression] Template friends and access to local classes Kriang Lerdsuwanakij
-- strict thread matches above, loose matches on Subject: below --
2002-12-21 1:23 lerdsuwa
2002-12-20 12:26 bangerth
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).