On 05/22/2011 02:24 PM, Tom de Vries wrote: > Now that struct tree_type does not exist anymore, 'sizeof (struct tree_type)' > generates an error in the following assert in fold_checksum_tree: > ... > gcc_assert ((sizeof (struct tree_exp) + 5 * sizeof (tree) > <= sizeof (struct tree_function_decl)) > && sizeof (struct tree_type) <= sizeof (struct > tree_function_decl)); > ... > > This error is triggered with -enable-checking=fold.
Doh. Thanks for the report. The easy fix is s/tree_type/tree_type_non_common/. But I don't see why the assert has to even care about tree_type; doesn't: gcc_assert ((sizeof (struct tree_exp) + 5 * sizeof (tree) <= sizeof (union tree_node)); accomplish the same thing? -Nathan