public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: dean@av8.net To: gcc-gnats@gcc.gnu.org Subject: c++/5500: public typedefs in inner classes do not work Date: Sat, 26 Jan 2002 14:56:00 -0000 [thread overview] Message-ID: <20020126224644.11392.qmail@sources.redhat.com> (raw) >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
next reply other threads:[~2002-01-26 22:56 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-01-26 14:56 dean [this message] 2002-01-26 15:16 Andrew Pinski 2002-01-26 16:16 Dean Anderson 2002-01-27 12:17 rodrigc
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020126224644.11392.qmail@sources.redhat.com \ --to=dean@av8.net \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).