On 02/05/2016 05:32 PM, Marek Polacek wrote:
   if (TREE_CODE (type) == ERROR_MARK)
     return NULL_TREE;

+  /* Here, DECL may change value; purge caches.  */
+  clear_fold_cache ();
+  clear_cv_cache ();
+
   if (MAYBE_CLASS_TYPE_P (type))

This should happen after computing the value to be stored, not before. Also, could you combine those two functions into one? There's no reason for callers such as this to need to call two different functions.

Jason

Reply via email to