https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic --- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- Perhaps you need to try with -Wunused-const-variable ? There may be some problem with TREE_READONLY (decl).