https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87541
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |6.3.0, 9.0 Summary|[7/8/9 Regression] ICE |[7/8 Regression] ICE using |using a constant decl as an |a constant decl as an |attribute alloc_size |attribute alloc_size |argument |argument Known to fail| |8.2.0 --- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- Fixed for GCC 9 in r266195. The ICE is still present in GCC 8 but I can't reproduce it in GCC 7. Since the patch also introduces a warning for (invalid) code that was previously silently accepted (pr87533) I'm not sure it should be backported to GCC 8.