re PR c++/89507 (bogus "size of array exceeds maximum object size")
authorJakub Jelinek <jakub@redhat.com>
Tue, 26 Feb 2019 21:27:33 +0000 (22:27 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 26 Feb 2019 21:27:33 +0000 (22:27 +0100)
commit8735903781aabdb48683d24d783eba6c76fd8c99
tree7bdb2c7cc9100224603610317f3e4551bef40e1c
parent1405bf4c9c5324639ca4b0a6529b5e4a43eb31db
re PR c++/89507 (bogus "size of array exceeds maximum object size")

PR c++/89507
* tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
with types other than sizetype/ssizetype.

* g++.dg/other/new2.C: New test.

From-SVN: r269233
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/new2.C [new file with mode: 0644]
gcc/tree.c