We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a44feeb + 47ecee1 commit bf10037Copy full SHA for bf10037
gcc/cp/tree.cc
@@ -36,6 +36,7 @@ along with GCC; see the file COPYING3. If not see
36
#include "attribs.h"
37
#include "flags.h"
38
#include "selftest.h"
39
+#include "contracts.h"
40
41
static tree bot_manip (tree *, int *, void *);
42
static tree bot_replace (tree *, int *, void *);
@@ -6354,6 +6355,10 @@ cp_free_lang_data (tree t)
6354
6355
DECL_EXTERNAL (t) = 1;
6356
TREE_STATIC (t) = 0;
6357
}
6358
+
6359
+ if (TREE_CODE (t) == FUNCTION_DECL)
6360
+ remove_contract_attributes (t);
6361
6362
if (TREE_CODE (t) == NAMESPACE_DECL)
6363
/* We do not need the leftover chaining of namespaces from the
6364
binding level. */
0 commit comments