]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/27384 (ICE with invalid array size)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Thu, 11 May 2006 15:16:49 +0000 (15:16 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Thu, 11 May 2006 15:16:49 +0000 (15:16 +0000)
commit06dbc4ec2da3ed51918d2e510a88f5a58b006ef4
tree5a076a1c667ff3ac348695c2b58c0f4f0f2e8a06
parentb86f1389914440a394c2c9b2d905ae44dba4ed3e
re PR c++/27384 (ICE with invalid array size)

PR middle-end/27384
* fold-const.c (size_binop): Move sanity check for arguments to
the beginning of the function.

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

From-SVN: r113703
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/fold1.C [new file with mode: 0644]