https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113264
hanwei (K) <hanwei62 at huawei dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hanwei62 at huawei dot com
--- Comment #4 from hanwei (K) <hanwei62 at huawei dot com> ---
This failed because the type of `attribute's value` is not always TREE_LIST.
In this case, the tree like, and the `value` is a `integer_cst`:
```
attributes <tree_list 0x7ffff6cc5f00
purpose <identifier_node 0x7ffff6d0b190 no_sanitize>
value <integer_cst 0x7ffff6cd8a08 constant 1>>>>
```
In function decl_attributes, we have code snip:
```
tree args = TREE_VALUE (attr)
...
int nargs = list_length (args)
```
Also assert the type of `args` is TREE_LIST.
I want to fix it. Do you have any suggestions to this? @Andrew Pinski