From: Peter Collingbourne <pcc03@doc.ic.ac.uk>
To: Doug Gregor <doug.gregor@gmail.com>
Cc: gcc@gcc.gnu.org
Subject: Re: Question regarding C++ frontend
Date: Thu, 05 Jun 2008 16:44:00 -0000 [thread overview]
Message-ID: <20080605164430.GA20045@doc.ic.ac.uk> (raw)
In-Reply-To: <24b520d20805030529u47306ee4j9be486e5bce4fe2a@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 957 bytes --]
On Sat, May 03, 2008 at 08:29:25AM -0400, Doug Gregor wrote:
> INNERMOST_TEMPLATE_ARGS can be used to get at the "innermost" TREE_VEC
> of template arguments for a class template specialzation such as
> foo<int>::bar<long>. CLASSTYPE_USE_TEMPLATE != 0 tells you whether a
> RECORD_TYPE is actually a template
Doug,
Thank you for your response and sorry for the delay. Unfortunately
CLASSTYPE_USE_TEMPLATE does not seem to have this property when the
non-template is an inner class of a template. For example, the
record_type t pertaining to a class outer<int>::inner_noargs :
(gdb) pt
<record_type 0x2ae12cb18900 inner_noargs type_5 type_6 VOID
align 8 symtab 0 alias set -1 canonical type 0x2ae12cb18900 context <record_type 0x2ae12cb180c0 outer>
no-binfo use_template=1 interface-unknown
chain <type_decl 0x2ae12cb189c0 inner_noargs>>
(gdb) print t->type.lang_specific->u.c.use_template
$4 = 1
Thanks,
--
Peter
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2008-06-05 16:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-02 15:39 Peter Collingbourne
2008-05-03 12:29 ` Doug Gregor
2008-06-05 16:44 ` Peter Collingbourne [this message]
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=20080605164430.GA20045@doc.ic.ac.uk \
--to=pcc03@doc.ic.ac.uk \
--cc=doug.gregor@gmail.com \
--cc=gcc@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: link
Be 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).