https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66221
--- Comment #3 from Ilya Enkovich <ienkovich at gcc dot gnu.org> --- Author: ienkovich Date: Thu May 21 09:47:32 2015 New Revision: 223474 URL: https://gcc.gnu.org/viewcvs?rev=223474&root=gcc&view=rev Log: gcc/ Backport from mainline r223471 2015-05-21 Ilya Enkovich <enkovich....@gmail.com> PR middle-end/66221 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use build_distinct_type_copy to copy bounds. gcc/testsuite/ Backport from mainline r223471 2015-05-21 Ilya Enkovich <enkovich....@gmail.com> PR middle-end/66221 * gcc.dg/lto/pr66221_0.c: New test. * gcc.dg/lto/pr66221_1.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.dg/lto/pr66221_0.c branches/gcc-5-branch/gcc/testsuite/gcc.dg/lto/pr66221_1.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/ipa-chkp.c branches/gcc-5-branch/gcc/testsuite/ChangeLog