On Sat, 24 Oct 2026, Kael Andrew Alonzo Franco wrote: > DECL_PURE_P only accepts FUNCTION_DECL, and testcase > ICE due to DECL_P (expr) passing by VAR_DECL when > it should be TREE_CODE (expr) == FUNCTION_DECL. > > Bootstrapped and regtested on x86_64-pc-linux-gnu. > > PR c/128120 > > gcc/c-family/ChangeLog: > > * c-attribs.cc (has_attribute): Fix ICE on > __builtin_has_attribute (var, pure). > > gcc/testsuite/ChangeLog: > > * gcc.dg/pr128120.c: New test.
OK. -- Joseph S. Myers [email protected]
