OSDN Git Service

2012-04-16 Martin Jambor <mjambor@suse.cz>
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Apr 2012 10:02:04 +0000 (10:02 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Apr 2012 10:02:04 +0000 (10:02 +0000)
commit3fd1a3cba8bd6a954989833052aca99c8b307e68
treea9ef8534b7c4b3955c25984016cf4db01f0f9fe9
parentc05d2baaef6d6d7171e728a2e7b4a97f508e1ae6
2012-04-16  Martin Jambor  <mjambor@suse.cz>

PR middle-end/52939
* gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
fold_ctor_reference returns a zero constant.

* testsuite/g++.dg/ipa/pr52939.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@186489 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr52939.C [new file with mode: 0644]