public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c++/9937: Failure to lookup base class name when base is template specialization Date: Wed, 05 Mar 2003 15:26:00 -0000 [thread overview] Message-ID: <20030305152600.30484.qmail@sources.redhat.com> (raw) The following reply was made to PR c++/9937; it has been noted by GNATS. From: Wolfgang Bangerth <bangerth@ticam.utexas.edu> To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/9937: Failure to lookup base class name when base is template specialization Date: Wed, 5 Mar 2003 09:21:09 -0600 (CST) ---------- Forwarded message ---------- Date: Wed, 05 Mar 2003 12:19:27 +0100 From: Thomas Witt <witt@ive.uni-hannover.de> To: Wolfgang Bangerth <bangerth@ticam.utexas.edu> Subject: Re: c++/9937: Failure to lookup base class name when base is template specialization -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wolfgang, Wolfgang Bangerth wrote: |>|>14.6/2a [...snip...] |> |>Aargh it's 14.6.1/2a. Sorry for that. | | Hm, I still don't get it. 14.6 is about name resolution, and while it | mentions that the name of class itself (without template arguments) is | injected, it doesn't say anything about the name of base classes. maybe | it's still that my copy is outdated. The DR you cite explains the matter. As I said earlier it's from a Technical Corrigendum 1 draft. I shouldn't have quoted from that document without explicitly saying so. For details on the TC1 status and procedure you may want to read this. http://www.cuj.com/experts/2102/sutter.htm | | OK, I'll note in the synopsis that it's about a DR. The DR is not in | resolved state, so I guess people will want to wait with implementing | until this is settled. The DR is marked as being part of TC1. | Should we put this into "suspended" state? Given the fact that the published std documents will make this a bug any time soon, I don't think so. |>Sadly, they are not. This kind of problems tend to prop up when you are |>dealing with any kind of code generator. Code generators rely heavily on |>uniform handling of ordinary types and template specialisations. | | But they are not in a lot of ways. Think about name lookup for members of | base classes, etc... That's a different issues. The problem we are dealing with is not about templates. It's about template specializations (read a template instantiated for one specific set of template arguments). These should and do behave in the same way as ordinary UDTs. What causes the problem is that derivation from A is handled differently than derivation from B<int>. From the generators point of view it should be transparent whether the base is a template specialization or not. Thomas - -- Dipl.-Ing. Thomas Witt Institut fuer Verkehrswesen, Eisenbahnbau und -betrieb, Universitaet Hannover voice: +49(0) 511 762 - 4273, fax: +49(0) 511 762-3001 http://www.ive.uni-hannover.de -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+Zd0/0ds/gS3XsBoRAnPwAJ96T+isLguJ+BACS1oDk3w4ZvStyQCfbX3o rRz27E7lmc+5Ipc0XEE2aT8= =XIOO -----END PGP SIGNATURE-----
next reply other threads:[~2003-03-05 15:26 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-03-05 15:26 Wolfgang Bangerth [this message] -- strict thread matches above, loose matches on Subject: below -- 2003-03-04 16:26 Wolfgang Bangerth 2003-03-04 16:16 Thomas Witt 2003-03-04 15:45 bangerth 2003-03-04 12:26 witt
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=20030305152600.30484.qmail@sources.redhat.com \ --to=bangerth@ticam.utexas.edu \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).