Re: C++ PATCH for c++/45698 (crash with variadics)

2011-05-25 Thread Jason Merrill
On 05/25/2011 03:56 PM, Nathan Froyd wrote: * cp-tree.h (struct tree_argument_pack_select): Inherit from tree_base. OK if it passes testing. Jason

Re: C++ PATCH for c++/45698 (crash with variadics)

2011-05-25 Thread Nathan Froyd
On 05/25/2011 03:45 PM, Jason Merrill wrote: > While looking at this, I also noticed that print_node expects everything to > have TREE_TYPE, which is no longer correct. Technically, I think this is not true; everything inherits from tree_common; or at least tree_typed. (I had the bit of print_nod

C++ PATCH for c++/45698 (crash with variadics)

2011-05-25 Thread Jason Merrill
45698 was actually fixed in 4.5.0, but before I closed it I checked to see how the testcase was doing with the current compiler, and found that it was crashing again. This turned out to be because of Nathan's recent tree-slimming work; ARGUMENT_PACK_SELECT doesn't have TREE_TYPE, so we crash w