PR c++/80227 - SFINAE and negative array size.
authorJason Merrill <jason@redhat.com>
Fri, 16 Mar 2018 18:56:01 +0000 (14:56 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 16 Mar 2018 18:56:01 +0000 (14:56 -0400)
commit80fdaad1c73fd73b30ba10d0a67fd82a3cae52b2
tree46cc91a59533b6b58d88f223ba0a25e85057700f
parent929a01229393f32b47d4915e48437c091a7baeec
PR c++/80227 - SFINAE and negative array size.

* decl.c (compute_array_index_type): Use
build_converted_constant_expr and valid_constant_size_p.

From-SVN: r258604
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp0x/fntmpdefarg8.C [new file with mode: 0644]
gcc/testsuite/g++.dg/gomp/pr47963.C
gcc/testsuite/g++.dg/init/new37.C
gcc/testsuite/g++.dg/init/new44.C
gcc/testsuite/g++.dg/ubsan/pr81530.C