public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7348: More recent access control problems, and wrong implicit typename warnings
@ 2002-07-23 7:25 lerdsuwa
0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2002-07-23 7:25 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, lerdsuwa, wolfgang.bangerth
Synopsis: More recent access control problems, and wrong implicit typename warnings
State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Tue Jul 23 07:25:20 2002
State-Changed-Why:
Fixed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7348
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/7348: More recent access control problems, and wrong implicit typename warnings
@ 2002-07-18 8:39 lerdsuwa
0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2002-07-18 8:39 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, lerdsuwa, wolfgang.bangerth
Synopsis: More recent access control problems, and wrong implicit typename warnings
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Thu Jul 18 08:39:45 2002
State-Changed-Why:
Confirmed. Patch in progress.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7348
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/7348: More recent access control problems, and wrong implicit typename warnings
@ 2002-07-18 6:26 lerdsuwa
0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2002-07-18 6:26 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, lerdsuwa, nobody, wolfgang.bangerth
Synopsis: More recent access control problems, and wrong implicit typename warnings
Responsible-Changed-From-To: unassigned->lerdsuwa
Responsible-Changed-By: lerdsuwa
Responsible-Changed-When: Thu Jul 18 06:26:20 2002
Responsible-Changed-Why:
Under investigation.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7348
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/7348: More recent access control problems, and wrong implicit typename warnings
@ 2002-07-18 1:46 wolfgang.bangerth
0 siblings, 0 replies; 4+ messages in thread
From: wolfgang.bangerth @ 2002-07-18 1:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 7348
>Category: c++
>Synopsis: More recent access control problems, and wrong implicit typename warnings
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 18 01:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
gcc 3.2 pre 2002-07-17
>Description:
The following fails to compile:
---------------------------------------------
class Outer {
template <int dim> struct Inner {
typedef int T;
T foo ();
};
public:
Outer();
};
template <int dim>
typename Outer::Inner<dim>::T Outer::Inner<dim>::foo () {
return 1;
};
template Outer::Inner<2>;
--------------------------------------------
The messages are:
x.cc:2: error: `template<int dim> struct Outer::Inner' is private
x.cc:11: error: within this context
x.cc:11: warning: `Outer::Inner<dim>::T' is implicitly a
typename
x.cc:11: warning: implicit typename is deprecated, please
see the documentation for details
Since Outer::Inner<dim>::T is the only way to access the
return type of the function, this must be allowed.
Furthermore, the implicit typename warning is bogus, since
there a "typename" on this very line.
This, just as c++/7347 is a new failure. Again, the bug
goes away if the inner class is not a template, which is
suspicious at best :-)
Regards
Wolfgang
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-07-23 14:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-23 7:25 c++/7348: More recent access control problems, and wrong implicit typename warnings lerdsuwa
-- strict thread matches above, loose matches on Subject: below --
2002-07-18 8:39 lerdsuwa
2002-07-18 6:26 lerdsuwa
2002-07-18 1:46 wolfgang.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).