https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84665
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Thu Apr 5 18:27:43 2018 New Revision: 259146 URL: https://gcc.gnu.org/viewcvs?rev=259146&root=gcc&view=rev Log: PR c++/84665 - ICE with array of empty class. * decl2.c (cp_check_const_attributes): Use fold_non_dependent_expr. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/attr-noinline-4.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/decl2.c