Do not ICE for incomplete types in ICF (PR ipa/85607).
authorMartin Liska <mliska@suse.cz>
Tue, 22 May 2018 10:50:43 +0000 (12:50 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 22 May 2018 10:50:43 +0000 (10:50 +0000)
commita6df9d9044965e3a265ead57bc516a450ad87bf6
tree99721d9fc15d919307a2430eef9cd7dbb11042a7
parent4515e413cb72d3a71b41d3e85da1be03fa88677d
Do not ICE for incomplete types in ICF (PR ipa/85607).

2018-05-22  Martin Liska  <mliska@suse.cz>

PR ipa/85607
* ipa-icf.c (sem_item::add_type): Do not ICE for incomplete types.
2018-05-22  Martin Liska  <mliska@suse.cz>

PR ipa/85607
* g++.dg/ipa/pr85607.C: New test.

From-SVN: r260502
gcc/ChangeLog
gcc/ipa-icf.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr85607.C [new file with mode: 0644]