diff options
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 9e9813d7f78..a2443ec6c19 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -2128,12 +2128,11 @@ pushdecl_top_level (tree x) { tree name; bool nested = false; - - gcc_assert (TREE_CODE (x) == VAR_DECL); + gcc_assert (TREE_CODE (x) == VAR_DECL || TREE_CODE (x) == CONST_DECL); name = DECL_NAME (x); - gcc_assert (!I_SYMBOL_BINDING (name)); + gcc_assert (TREE_CODE (x) == CONST_DECL || !I_SYMBOL_BINDING (name)); if (TREE_PUBLIC (x)) { |