PR c++/84665 - ICE with array of empty class.
authorJason Merrill <jason@redhat.com>
Thu, 5 Apr 2018 16:04:08 +0000 (12:04 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 5 Apr 2018 16:04:08 +0000 (12:04 -0400)
commit68218b64edccb3286d57217f7bd85264340e5a9f
treeb31fd8e3c77319582dd15d25b0a03adffc4ce8f5
parent4cbe585c99bf621607420b341384bdb7e0e8a71d
PR c++/84665 - ICE with array of empty class.

* decl2.c (cp_check_const_attributes): Use fold_non_dependent_expr.

From-SVN: r259132
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/g++.dg/ext/attr-noinline-4.C [new file with mode: 0644]