public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5500: public typedefs in inner classes do not work
@ 2002-01-26 15:16 Andrew Pinski
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Pinski @ 2002-01-26 15:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/5500; it has been noted by GNATS.
From: Andrew Pinski <pinskia@physics.uc.edu>
To: dean@av8.net
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/5500: public typedefs in inner classes do not work
Date: Sat, 26 Jan 2002 18:06:05 -0500
In gcc 3.1 the cvs version with a date of 20020122, I get:
In file included from x.cxx:2:
x.h:46: warning: `typename C<T>::InnerC::const_reference' is implicitly
a typename
x.h:46: warning: implicit typename is deprecated, please see the
documentation for details
In file included from x.h:54,
from x.cxx:2:
x.inl:16: warning: `typename C<T>::InnerC::const_reference' is
implicitly a typename
x.inl:16: warning: implicit typename is deprecated, please see the
documentation for details
x.inl:38: warning: `typename C<T>::InnerC::const_reference' is
implicitly a typename
x.inl:38: warning: implicit typename is deprecated, please see the
documentation for details
but it compiles with these warnings.
Thanks,
Andrew Pinski
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/5500: public typedefs in inner classes do not work
@ 2002-01-27 12:17 rodrigc
0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2002-01-27 12:17 UTC (permalink / raw)
To: dean, gcc-bugs, gcc-prs, nobody
Synopsis: public typedefs in inner classes do not work
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Jan 27 12:17:47 2002
State-Changed-Why:
- code example fixed by adding 'typename' keyword
- better diagnostic messages in gcc 3.1
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5500
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/5500: public typedefs in inner classes do not work
@ 2002-01-26 16:16 Dean Anderson
0 siblings, 0 replies; 4+ messages in thread
From: Dean Anderson @ 2002-01-26 16:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/5500; it has been noted by GNATS.
From: Dean Anderson <dean@av8.com>
To: Andrew Pinski <pinskia@physics.uc.edu>
Cc: <dean@av8.net>, <gcc-gnats@gcc.gnu.org>
Subject: Re: c++/5500: public typedefs in inner classes do not work
Date: Sat, 26 Jan 2002 19:14:16 -0500 (EST)
Ok, I see: Adding the typename keyword makes the problem go away...
I agree this isn't a bug, but I like the 3.1 error message much better...
Thanks!
--Dean
On Sat, 26 Jan 2002, Andrew Pinski wrote:
> In gcc 3.1 the cvs version with a date of 20020122, I get:
>
> In file included from x.cxx:2:
> x.h:46: warning: `typename C<T>::InnerC::const_reference' is implicitly
> a typename
> x.h:46: warning: implicit typename is deprecated, please see the
> documentation for details
> In file included from x.h:54,
> from x.cxx:2:
> x.inl:16: warning: `typename C<T>::InnerC::const_reference' is
> implicitly a typename
> x.inl:16: warning: implicit typename is deprecated, please see the
> documentation for details
> x.inl:38: warning: `typename C<T>::InnerC::const_reference' is
> implicitly a typename
> x.inl:38: warning: implicit typename is deprecated, please see the
> documentation for details
>
> but it compiles with these warnings.
>
> Thanks,
> Andrew Pinski
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/5500: public typedefs in inner classes do not work
@ 2002-01-26 14:56 dean
0 siblings, 0 replies; 4+ messages in thread
From: dean @ 2002-01-26 14:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 5500
>Category: c++
>Synopsis: public typedefs in inner classes do not work
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 26 14:56:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Dean Anderson
>Release: unknown-1.0
>Organization:
>Environment:
[dean@vista tmp]$ g++ -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/specs
Configured with: ./configure
Thread model: single
gcc version 3.0.3
[dean@vista tmp]$ uname -a
Linux vista.av8.net 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
>Description:
public typedefs define in an inner class do not work:
[dean@vista tmp]$ g++ -save-temps x.cxx
In file included from x.h:27,
from x.cxx:1:
x.inl:12: prototype for `typename C<T>::InnerC::const_reference
C<T>::get_InnerC() const' does not match any in class `C<T>'
x.h:23: candidate is: typename C<T>::InnerC::const_reference C<T>::get_InnerC() const
x.inl:12: template definition of non-template `typename
C<T>::InnerC::const_reference C<T>::get_InnerC() const'
>How-To-Repeat:
g++ x.ii
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="x.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="x.ii"
IyAxICJ4LmN4eCIKIyAxICJ4LmgiIDEKCgoKCgoKdGVtcGxhdGUgPGNsYXNzIFQ+CmNsYXNzIEMK
ewogIHB1YmxpYzoKICAgIEMoKSB7fQogICAgQyhjb25zdCBDPFQ+ICYgb3RoZXIpIHt9CiAgICBD
PFQ+JiBvcGVyYXRvciA9IChjb25zdCBDPFQ+JiBvdGhlcikKICAgIHsgcmV0dXJuICp0aGlzOyB9
CiAgICBjbGFzcyBJbm5lckMgewogICAgICBwdWJsaWM6CiAgICAgICAgdHlwZWRlZiBpbnQgdmFs
dWVfdHlwZTsKCiAgICAgICAgdHlwZWRlZiBjb25zdCB2YWx1ZV90eXBlJiBjb25zdF9yZWZlcmVu
Y2U7CiAgICAgICAgaW50IGdldDNfSW5uZXJDICgpIGNvbnN0OwogICAgICAgIGNvbnN0X3JlZmVy
ZW5jZSBnZXQ0X0lubmVyQyAoKSBjb25zdDsKICAgIH07CiAgICBJbm5lckM6OmNvbnN0X3JlZmVy
ZW5jZSBnZXRfSW5uZXJDICgpIGNvbnN0OwoKfTsKCiMgMSAieC5pbmwiIDEKIyA5ICJ4LmlubCIK
dGVtcGxhdGUgPGNsYXNzIFQ+CmlubGluZSBDPFQ+OjpJbm5lckM6OmNvbnN0X3JlZmVyZW5jZQog
ICAgICAgIEM8VD46OmdldF9Jbm5lckMgKCkgY29uc3QKICAgICAgICAgICAgICAgIHsgcmV0dXJu
IDE7fQojIDIxICJ4LmlubCIKdGVtcGxhdGUgPGNsYXNzIFQ+CmlubGluZSBpbnQKICAgICAgICBD
PFQ+OjpJbm5lckM6OmdldDNfSW5uZXJDICgpIGNvbnN0CiAgICAgICAgICAgICAgICB7IHJldHVy
biAzO30KCnRlbXBsYXRlIDxjbGFzcyBUPgppbmxpbmUgQzxUPjo6SW5uZXJDOjpjb25zdF9yZWZl
cmVuY2UKICAgICAgICBDPFQ+OjpJbm5lckM6OmdldDRfSW5uZXJDICgpIGNvbnN0CiAgICAgICAg
ICAgICAgICB7IHJldHVybiA0O30KIyAyOCAieC5oIiAyCiMgMiAieC5jeHgiIDIK
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-01-27 20:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-26 15:16 c++/5500: public typedefs in inner classes do not work Andrew Pinski
-- strict thread matches above, loose matches on Subject: below --
2002-01-27 12:17 rodrigc
2002-01-26 16:16 Dean Anderson
2002-01-26 14:56 dean
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).