This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] PR 60999


Hi,

On 05/05/2014 03:32 PM, Jason Merrill wrote:
On 05/03/2014 06:55 PM, Paolo Carlini wrote:
On 05/03/2014 11:14 PM, Jason Merrill wrote:
Do you want CLASSTYPE_IS_TEMPLATE here?

Uhm, you mean something simple like the attached? Because certainly I
tried it and didn't fully work (nsdmi-template7.C?) and for sure we
would regress on the below (which we should probably also add to
testsuite, I had it two days ago in my experiments...).

Ah, yes, CLASSTYPE_IS_TEMPLATE is false for partial specializations. What we want is a predicate to check for a class template or partial specialization.

Good, but is it Ok to use uses_template_parms for that? A few days ago I struggled to find something simpler ready to use, to no avail (well, this is probably well known to you, but there are surprisingly few places in pt.c where we explain either in comments or in obvious code that we are handling full (vs partial) specializations).

(Well, minor improvement of the below, I think it would be ok to call dependent_type_p directly, but processing_template_decl must be 1 around it anyway)

Paolo.

Attachment: p
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]