[RFC / Patch] C++/26099 or front-end support to type traits

Paolo Carlini pcarlini@suse.de
Tue Mar 13 16:57:00 GMT 2007

Andrew Pinski wrote:

>> +
>> +/* 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)
> One suggestion is to make this tcc_exceptional and make a new
> structure for the code, this will reduce memory usage.

Yes, that would be easy, in fact I tested also a version using 
tcc_exceptional, attached.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_exceptional
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070313/df30fa81/attachment.ksh>

More information about the Gcc-patches mailing list