re PR ipa/62121 (ICE: Segmentation fault in ipa-devirt.c:997)
authorJan Hubicka <hubicka@ucw.cz>
Sat, 27 Sep 2014 00:19:06 +0000 (02:19 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 27 Sep 2014 00:19:06 +0000 (00:19 +0000)
commitec1d732bc6e08ede9c33029347d0568ca310531f
tree7fa13bcb0d321647fa8ad89c27ffffe9bde8fe46
parentee5bd6c8fd290b4fcb4ceeb79eb5361780ecf19b
re PR ipa/62121 (ICE: Segmentation fault in ipa-devirt.c:997)

PR ipa/62121
* ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
fix pasto in checking array size.

* g++.dg/torture/pr62121.C: New testcase.

From-SVN: r215655
gcc/ChangeLog
gcc/ipa-polymorphic-call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr62121.C [new file with mode: 0644]