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: [RFC / Patch] C++/26099 or front-end support to type traits


Mike Stump wrote:

On Mar 13, 2007, at 8:44 AM, Paolo Carlini wrote:

--- cp/cp-tree.def (revision 122814)
+++ cp/cp-tree.def (working copy)
@@ -422,6 +422,12 @@
index is a machine integer. */
DEFTREECODE (ARGUMENT_PACK_SELECT, "argument_pack_select", tcc_exceptional, 0)


+/** C++ extensions. */
+
+/* Represents a trait expression during template expansion. Operand 0
+   is the kind of trait.  Operand 1 the queried type.  */
+DEFTREECODE (TRAIT_EXPR, "trait_expr", tcc_expression, 2)

I object to any more new tree codes, without us first setting a direction we want to go.

Sure, we have to set exactly that direction, but here I'm at a preliminary stage, I want to make sure the syntax is right and any other detail. Yes, I'm certainly going to need *one* tree code, but I can do nothing about that.


Paolo.


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