re PR c++/27384 (ICE with invalid array size)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Thu, 11 May 2006 15:07:45 +0000 (15:07 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Thu, 11 May 2006 15:07:45 +0000 (15:07 +0000)
commit7ebcc52c5a640d18127d21d0d359bb318b452f7d
tree98ed978ffff827c601b236cd6a98e5dd586e68a5
parent81e61fb4e6c11f360ee7cd5193fabac638ca0365
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: r113701
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/fold1.C [new file with mode: 0644]